I'd like to use the amazing
golang.org/x/net/trace library. Howevever, my HTTP-serving binaries are using the
Gorilla Mux for the request routing.
Unfortunately, the trace package doesn't expose the http.HandleFunc as a public interface, instead registering private methods in the package's init() function to the http.DeafultServerMux.
The net/http/pprof package takaes a similar approach, registering default handlers, but it still maintains flexibility of exporting the relevant HandlerFunc allowing greater flexibility.
How can I contribute to make trace HTTP handlers more flexible in use?
Michal
Head of Infrastructure
Improbable