-
Notifications
You must be signed in to change notification settings - Fork 438
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
Allow disabling nodejs auto-instrumentations via environment variables #2622
Allow disabling nodejs auto-instrumentations via environment variables #2622
Comments
@opentelemetry/instrumentation-fs
is causing a lot of unnecessary traces and is recommended to be disabled:@opentelemetry/instrumentation-fs
instrumentation
@opentelemetry/instrumentation-fs
instrumentation @opentelemetry/instrumentation-fs
instrumentation
Is there a way to disable it with env var? Can it be disabled here https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/nodejs/src/autoinstrumentation.ts#L35 ? We could define an env var (specific for the operator) to enable it conditionally. |
Hi @mderazon and @pavolloffay! I think we'd need a generic solution to disable any instrumentations, not just specific environment variable for disabling There are different approaches we could take:
While both approaches would work without much effort, I'd prefer the the @opentelemetry/auto-instrumentations-node package specific solution, that would make life easier also for developers that don't use it with opentelemetry-operator. I hope that people will agree to environment variable naming conventions for disabling nodejs auto-instrumentations. For now Java, Python and .Net have different naming conventions (as mentioned in this comment) and it would be bad if this library implemented its own naming convention that |
to allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` open-telemetry#2622
FYI: i created a PR #2745 to address this issue. @mderazon, could you rename this issue from
to
or even better:
so it could be closed after merging my PR without causing confusion if it is now disabled by default or can be disabled |
@opentelemetry/instrumentation-fs
instrumentationto allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` open-telemetry#2622
to allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` open-telemetry#2622
To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
to allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` open-telemetry#2622
…toinstrumentation/nodejs (open-telemetry#2754) * Bump all NodeJS devDependences to latest versions * Bump all NodeJS dependences to latest versions To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
Hi. I would like to disable an instrumentation. Seems like
@opentelemetry/instrumentation-fs
is causing a lot of unnecessary traces and is recommended to be disabled:open-telemetry/opentelemetry-js-contrib#1344 (comment)
It's possible to disable it via node auto instrumentation:
open-telemetry/opentelemetry.io#2988 (review)
https://github.com/open-telemetry/opentelemetry.io/blob/16328c6c00bb5c163f200b22ef90b881a80a86d1/content/en/docs/languages/js/libraries.md?plain=1#L145-L154
But I am not sure how to do it through otel operator ?
Originally posted by @mderazon in #1283 (comment)
The text was updated successfully, but these errors were encountered: