https://github.com/riandyrn/otelchi
OpenTelemetry instrumentation for go-chi/chi
https://github.com/riandyrn/otelchi
go go-chi golang instrumentation opentelemetry
Last synced: about 1 year ago
JSON representation
OpenTelemetry instrumentation for go-chi/chi
- Host: GitHub
- URL: https://github.com/riandyrn/otelchi
- Owner: riandyrn
- License: apache-2.0
- Created: 2021-08-10T17:42:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-12T03:34:02.000Z (over 1 year ago)
- Last Synced: 2025-04-08T15:07:32.493Z (about 1 year ago)
- Topics: go, go-chi, golang, instrumentation, opentelemetry
- Language: Go
- Homepage:
- Size: 312 KB
- Stars: 136
- Watchers: 4
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# otelchi
[](https://github.com/riandyrn/otelchi/actions/workflows/compatibility-test.yaml)
[](https://goreportcard.com/report/github.com/riandyrn/otelchi)
[](https://pkg.go.dev/mod/github.com/riandyrn/otelchi)
OpenTelemetry instrumentation for [go-chi/chi](https://github.com/go-chi/chi).
Essentially this is an adaptation from [otelmux](https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/github.com/gorilla/mux/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
```bash
$ go get github.com/riandyrn/otelchi
```
## Examples
See [examples](./examples) for details.
## Why Port This?
I was planning to make this project as part of the Open Telemetry Go instrumentation project. However, based on [this comment](https://github.com/open-telemetry/opentelemetry-go-contrib/pull/986#issuecomment-941280855) they no longer accept new instrumentation. This is why I maintain this project here.