That's very interesting Felix. Can it handle https requests as well?
On Thursday, November 10, 2016 at 6:09:32 AM UTC-5, Felix Geisendoerfer wrote: > > Hi all, > > while working on instrumenting my application, I ran into the fact that > capturing metrics such as status codes from my own http.Handlers is > surprisingly difficult to get right. > > Therefor I created a package that hopefully avoids most of the common > pitfalls. > > https://github.com/felixge/httpsnoop > > I would love for net/http experts to take a look at the "Why this package > exists" section of the README, as well as the horrible hack required to > make things work: > > https://github.com/felixge/httpsnoop/blob/master/wrap.go#L44-L163 > > Please let me know if you have suggestions for simpler approaches and/or > spot any bugs in my implementation. > > Thanks a lot! > Felix Geisendörfer > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.