Skip to content

What are the best practices when configuring the SDK to be optional in Rails? #1605

Discussion options

You must be logged in to vote

Thank you for using OTel Ruby!

Per the specification there is an environment variable that all OTel SDKs must support, which is OTEL_SDK_DISABLED:

OTEL_SDK_DISABLED Disable the SDK for all signals false 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.

https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration

It is however not currently implemented by the Ruby SDK: #1388

Would you be interested in helping u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by murshed-panorama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants