Skip to content

feat: add OpenTelemetry HTTP tracing support#114

Open
bertschneider wants to merge 1 commit into
mainfrom
otel-support
Open

feat: add OpenTelemetry HTTP tracing support#114
bertschneider wants to merge 1 commit into
mainfrom
otel-support

Conversation

@bertschneider
Copy link
Copy Markdown
Member

Introduces a new extotel package that initializes the OpenTelemetry SDK from standard OTEL_* environment variables, and wires otelhttp into the exthttp.RegisterHttpHandler middleware chain so every incoming request produces a METHOD /path span. When OTEL is not configured the global noop provider keeps the instrumentation zero-cost, so existing consumers are unaffected.

Introduces a new `extotel` package that initializes the OpenTelemetry SDK
from standard OTEL_* environment variables, and wires `otelhttp` into the
`exthttp.RegisterHttpHandler` middleware chain so every incoming request
produces a `METHOD /path` span. When OTEL is not configured the global
noop provider keeps the instrumentation zero-cost, so existing consumers
are unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant