4 ms·
> you can use opentelemetry to get traces and metrics for golang net/http Yes, but not server-internal metrics, as IIRC the telemetry provider plugs into http.
by derefr 5y ago
> you can use opentelemetry to get traces and metrics for golang net/http
Yes, but not server-internal metrics, as IIRC the telemetry provider plugs into http.Server as a middleware. It only exposes the kinds of metrics you could calculate yourself in a handler; it doesn’t expose any of the “good stuff” (e.g. work queues, accept(2) latency, etc.)