Skip to content

Commit

Permalink
add host tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bishnuag authored Aug 1, 2024
1 parent 8d71902 commit 674f08a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/server_http_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (res *ServerHTTPResponse) finish(ctx context.Context) {
append(logFields, zap.Int("UnknownStatusCode", res.StatusCode))...,
)
} else {
tagged.Counter(endpointStatus).Inc(1)
tagged.Tagged(map[string]string{"host": GetHostname()}).Counter(endpointStatus).Inc(1)
}

logFn := res.contextLogger.Debug
Expand Down

0 comments on commit 674f08a

Please sign in to comment.