go-chi / go-chi/chi

OpenTelemetry Middleware Proposal

Open
#937 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
22.9k
Forks
1.4k
Avg merge
5h 17m
Merged PRs (30d)
10

Description

OpenTelemetry is becoming a popular open-source solution for monitoring application performance. Well-defined semantic conventions are supplied for HTTP metrics and traces. See here: https://opentelemetry.io/docs/specs/semconv/http/

In following with their guidance on instrumentation, they recommend implementing instrumentation code in the library for which it is written: https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation#new-instrumentation

If interested, I would be willing to contribute instrumentation code that implements OpenTelemetry metrics and tracing as a middleware for `chi`. Please let me know if you would like me to proceed with opening a PR.

Thanks.

p.s. thank you for `chi`, using it is a great experience

Contributor guide

Open the contributing guide

Research direction

Start with the linked OpenTelemetry HTTP semantic conventions and opentelemetry-go-contrib instrumentation guidance, then confirm the desired chi middleware scope with maintainers. Done means an agreed design for metrics and tracing middleware and a submitted implementation PR.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.