-
Notifications
You must be signed in to change notification settings - Fork 932
Description
What are you trying to achieve?
Ruby received a PR to implement the OTEL_SDK_DISABLED
environment variable, but we're not sure how far the functionality needs to go. The PR as it stands would skip creating providers through configuration, but someone could still manually create functional providers and tracers/meters/loggers. Is that acceptable?
Additional context.
Boolean value. If “true”, a no-op SDK implementation will be used for all telemetry signals. Any other value or absence of the variable will have no effect and the SDK will remain enabled. This setting has no effect on propagators configured through the OTEL_PROPAGATORS variable.
I took a look at open-telemetry/opentelemetry-python#3648, and it seems like they always return no-ops when OTEL_SDK_DISABLED
is true.
However, Java's implementation seems closer to the Ruby PR. Configuration is skipped, but I don't know enough about Java to know if that means you cannot create working tracers, etc.