Commit graph

1 commit

Author SHA1 Message Date
Snider
8ba1716215 feat: add WithTracing OpenTelemetry distributed tracing middleware
Adds WithTracing(serviceName) option using the official otelgin
instrumentation (go.opentelemetry.io/contrib/.../otelgin v0.65.0).
Each request produces a span with http.request.method, http.route,
and http.response.status_code attributes. Trace context is propagated
via W3C traceparent headers.

Also exposes NewTracerProvider() convenience helper for wiring up
a synchronous TracerProvider in tests and simple deployments.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 00:24:46 +00:00