Skip to content

✨ feat(mq-web-api): add OpenTelemetry tracing support via otel feature#1601

Merged
harehare merged 3 commits intomainfrom
feat/mq-web-api-otel
Apr 15, 2026
Merged

✨ feat(mq-web-api): add OpenTelemetry tracing support via otel feature#1601
harehare merged 3 commits intomainfrom
feat/mq-web-api-otel

Conversation

@harehare
Copy link
Copy Markdown
Owner

Add an optional otel feature flag to mq-web-api that enables OTLP trace export using opentelemetry_sdk 0.31, opentelemetry-otlp 0.31, and tracing-opentelemetry 0.32.

Add an optional `otel` feature flag to mq-web-api that enables OTLP
trace export using opentelemetry_sdk 0.31, opentelemetry-otlp 0.31,
and tracing-opentelemetry 0.32.

When enabled, the tracing subscriber is extended with an OTLP span
exporter (gRPC/tonic). Configuration is via environment variables:
- OTEL_EXPORTER_OTLP_ENDPOINT: collector endpoint (e.g. http://localhost:4317)
- OTEL_SERVICE_NAME: service name reported to the collector (default: mq-web-api)

The SdkTracerProvider is stored in a OnceLock so it can be flushed
cleanly on graceful server shutdown.
@harehare harehare merged commit 93640de into main Apr 15, 2026
4 checks passed
@harehare harehare deleted the feat/mq-web-api-otel branch April 15, 2026 14:55
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