mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-06-16 03:49:08 -04:00
Bumps [github.com/riandyrn/otelchi](https://github.com/riandyrn/otelchi) from 0.12.2 to 0.12.3. - [Release notes](https://github.com/riandyrn/otelchi/releases) - [Changelog](https://github.com/riandyrn/otelchi/blob/master/CHANGELOG.md) - [Commits](https://github.com/riandyrn/otelchi/compare/v0.12.2...v0.12.3) --- updated-dependencies: - dependency-name: github.com/riandyrn/otelchi dependency-version: 0.12.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
otelchi
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!
Install
$ go get github.com/riandyrn/otelchi
Examples
See examples for details.
Metrics
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.
Why Port This?
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.