-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
I am still looking for a way to instrument the HTTP response codes from each handler. I did not find a way to seamlessly integrate it with the instrumentation middleware since the response code becomes only apparent when the response is encoded.
I was pointed to https://github.com/felixge/httpsnoop though. This still leaves me with a possible sub-optimal solution as the wrapping needs to happen in my transport.go where the single handlers are instantiated rather than abstracting it away into my instrumentation.go.
Are there any plans to implement this kind of feature or does someone have a better idea to get this integrated?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels