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?
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.gowhere the single handlers are instantiated rather than abstracting it away into myinstrumentation.go.Are there any plans to implement this kind of feature or does someone have a better idea to get this integrated?