Closed charleskorn closed 9 months ago
I'm not sure if we want to take a dependency on dskit here - open to feedback or other suggestions.
Adding dskit dependency looks fine to me. That's why we have a shared library for common stuff between our projects.
This PR adds some basic metrics for incoming HTTP requests, like per-route latency and status codes.
This uses the instrumentation from dskit, which required changing the HTTP router from a vanilla
net/http.ServeMux
to agithub.com/gorilla/mux.Router
. I'm not sure if we want to take a dependency on dskit here - open to feedback or other suggestions.