We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current logic for determining if the OpenTelemetry SDK (OTEL) is enabled is not working as expected. Specifically, the following line of code:
dd-trace-js/packages/datadog-instrumentations/src/otel-sdk-trace.js
Lines 7 to 10 in 9794630
To fix this issue, we need to explicitly check the values of the environment variables. Here is the corrected logic:
const otelSdkEnabled = process.env.DD_TRACE_OTEL_ENABLED === 'true' || (process.env.OTEL_SDK_DISABLED !== 'true' && process.env.OTEL_SDK_DISABLED !== undefined);
This should resolve the issue and ensure the logic works correctly without needing to explicitly set OTEL_SDK_DISABLED to false.
OTEL_SDK_DISABLED
false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
The current logic for determining if the OpenTelemetry SDK (OTEL) is enabled is not working as expected. Specifically, the following line of code:
dd-trace-js/packages/datadog-instrumentations/src/otel-sdk-trace.js
Lines 7 to 10 in 9794630
Suggested Solution
To fix this issue, we need to explicitly check the values of the environment variables. Here is the corrected logic:
This should resolve the issue and ensure the logic works correctly without needing to explicitly set
OTEL_SDK_DISABLED
tofalse
.The text was updated successfully, but these errors were encountered: