OpenTelemetry instrumentation for go-chi/chi.
Essentially this is an adaptation from otelmux but instead of using gorilla/mux, we use go-chi/chi.
Currently, this library can only instrument traces and metrics.
Contributions are welcomed!
$ go get github.com/riandyrn/otelchiSee examples for details.
The metric package provides OpenTelemetry semantic-convention compliant HTTP server metric middleware:
http.server.request.durationhttp.server.active_requestshttp.server.request.body.sizehttp.server.response.body.size
Legacy metric middleware for request_duration_millis, requests_inflight, and response_size_bytes is still available but deprecated.
I was planning to make this project as part of the Open Telemetry Go instrumentation project. However, based on this comment they no longer accept new instrumentation. This is why I maintain this project here.