Skip to content

Conversation

@glinf
Copy link
Collaborator

@glinf glinf commented Jan 6, 2026

The SDK was creating its own TracerProvider when OTEL_EXPORTER_OTLP_ENDPOINT was set but no TracerProvider was configured. This caused issues when used in applications that configure their own TracerProvider:

  1. The SDK's TracerProvider would be set first, preventing the app's setup
  2. The endpoint was passed without /v1/traces path, causing 404 errors

Now the SDK follows OTEL best practices:

  • Libraries/SDKs get tracers from the global provider
  • Applications configure the TracerProvider
  • If no provider is set, tracing is effectively disabled (NoOp)

This allows applications to control when and how OTEL is configured, and the SDK will automatically use whatever TracerProvider is available.

Removed:

  • QuietOTLPSpanExporter class (no longer needed)
  • OTEL_EXPORTER_OTLP_* constants (no longer used)
  • TracerProvider setup logic

The SDK was creating its own TracerProvider when OTEL_EXPORTER_OTLP_ENDPOINT
was set but no TracerProvider was configured. This caused issues when used
in applications that configure their own TracerProvider:

1. The SDK's TracerProvider would be set first, preventing the app's setup
2. The endpoint was passed without /v1/traces path, causing 404 errors

Now the SDK follows OTEL best practices:
- Libraries/SDKs get tracers from the global provider
- Applications configure the TracerProvider
- If no provider is set, tracing is effectively disabled (NoOp)

This allows applications to control when and how OTEL is configured,
and the SDK will automatically use whatever TracerProvider is available.

Removed:
- QuietOTLPSpanExporter class (no longer needed)
- OTEL_EXPORTER_OTLP_* constants (no longer used)
- TracerProvider setup logic
@glinf glinf self-assigned this Jan 6, 2026
@glinf glinf requested review from aac228, dumontg and jean-malo January 6, 2026 14:18
Copy link
Contributor

@dumontg dumontg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@glinf glinf merged commit f3ad2f1 into main Jan 6, 2026
9 checks passed
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.

5 participants