Skip to content

Commit f8b65d2

Browse files
authored
Fix session metrics for stream upstreams
* 4xx and 5xx session metrics are not correctly unmarshalled. Instead they are ignored. Bug introduced in: c9fb4ac
1 parent ae5e2df commit f8b65d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/nginx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ type Responses struct {
184184
// Sessions represents stream session related stats.
185185
type Sessions struct {
186186
Sessions2xx uint64 `json:"2xx"`
187-
Sessions4xx uint64 `josn:"4xx"`
188-
Sessions5xx uint64 `josn:"5xx"`
187+
Sessions4xx uint64 `json:"4xx"`
188+
Sessions5xx uint64 `json:"5xx"`
189189
Total uint64
190190
}
191191

0 commit comments

Comments
 (0)