-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
payment service crashes with OTEL_SDK_DISABLED #2124
Comments
I wonder if that is a Demo issue, or an SDK issue. |
@julianocosta89 thanks for reaching out. This is a Demo issue, I think. |
Thanks for the prompt reply @pichlermarc 🤩 ! That made me wonder, should this env var affect the usage of the API? I've done a quick test to see how Java was behaving and my expectation was met.
Started the demo with
But no Spans from |
It shouldn't, you're right. But this is actually an issue that would've been caught by using TypeScript as the return type states that it can be This function is similar to Java's Side note: these are all utility functions that are named differently across SDKs, coming from this part of the spec. Since it does not fully specify behavior, everyone kind of does something different. There's a good case for having a |
Bug Report
Which version of the demo you are using?
2.0.1
Symptom
payment service crashes when
OTEL_SDK_DISABLED
env var istrue
What is the expected behavior?
Expected behavior is that the payment service honors this variable as described in the docs:
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.
https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration
What do you expect to see?
payment service runs with no-op sdk implementation.
What is the actual behavior?
payment service crashes
Please describe the actual behavior experienced.
Reproduce
Could you provide the minimum required steps to resolve the issue you're seeing?
To reproduce, set OTEL_SDK_DISABLED env var to "true".
I set this for all services in my values.yaml like so:
The text was updated successfully, but these errors were encountered: