Skip to content

Commit

Permalink
pkg/server/middleware: add host tag to gateway-mt events
Browse files Browse the repository at this point in the history
Change-Id: I4be9aff4f4dba1cd248a7100f218b51e0a681acf
  • Loading branch information
halkyon authored and Storj Robot committed Apr 11, 2024
1 parent 6d9391c commit cf546b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/server/middleware/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func CollectEvent(h http.Handler) http.Handler {

ek.Event("gmt",
eventkit.String("protocol", r.Proto),
eventkit.String("host", r.Host),
eventkit.String("method", r.Method),
eventkit.String("user-agent", product),
eventkit.Int64("status", int64(rw.StatusCode())),
Expand Down

0 comments on commit cf546b1

Please sign in to comment.