▲ 9 ▼ httpsnoop - provides an easy way to capture http related metrics
httpsnoop provides an easy way to capture http related metrics (i.e. response time, bytes written, and http status code) from your application's http.Handlers.
Register to comment or vote on this story
I'm not sure I understand. This approach seems complicated and prone to issues as the author mentioned. Why not implement this as a middleware and simply emit those metrics from there, to stdout, your monitoring system or add them to a context?