I'm currently implementing open-telemetry, and I want to have the route pattern as part of the operation name.
I would be able to get the method and route pattern by injecting a custom ServeMux during the handler initialization.
Following the open-closed principle, you should accept interfaces and return structs. Would it be possible to accept a mux interface instead of the *http.ServeMux struct?
I volunteer myself for implementing it if approved.