28 lines
1.3 KiB
Markdown
28 lines
1.3 KiB
Markdown
# 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.
|