Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riandyrn/otelchi
OpenTelemetry instrumentation for go-chi/chi
https://github.com/riandyrn/otelchi
go go-chi golang instrumentation opentelemetry
Last synced: 4 days 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-18T11:15:04.000Z (20 days ago)
- Last Synced: 2025-01-26T23:05:33.977Z (12 days ago)
- Topics: go, go-chi, golang, instrumentation, opentelemetry
- Language: Go
- Homepage:
- Size: 301 KB
- Stars: 128
- Watchers: 5
- Forks: 41
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# otelchi
[![compatibility-test](https://github.com/riandyrn/otelchi/actions/workflows/compatibility-test.yaml/badge.svg)](https://github.com/riandyrn/otelchi/actions/workflows/compatibility-test.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/riandyrn/otelchi)](https://goreportcard.com/report/github.com/riandyrn/otelchi)
[![Documentation](https://godoc.org/github.com/riandyrn/otelchi?status.svg)](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.