Skip to content

Integrate instrumentation of response codes #394

@konradreiche

Description

@konradreiche

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions