-
Notifications
You must be signed in to change notification settings - Fork 228
feat(nodejs): add ability to be able to enable/disable active instrumentations by env var #1653
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
feat(nodejs): add ability to be able to enable/disable active instrumentations by env var #1653
Conversation
|
I like the idea to give more control of what is loaded and what not. This change seems to introduce a configuration option (unless it's just something experimental/internal right now) and therefore should have a documentation section in the readme. |
|
These configurations are already in use ones as mentioned here: https://opentelemetry.io/docs/zero-code/js/configuration/#excluding-instrumentation-libraries |
6a87508 to
9a82902
Compare
|
It looks like Node already follows this convention, so that's fine. Just pointing it out that Java does it a bit differently: https://opentelemetry.io/docs/zero-code/java/agent/disable/#enable-only-specific-instrumentation |
tylerbenson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok to me.
…entations by env var
9a82902 to
af819a8
Compare
…entations by env var (open-telemetry#1653) * feat(nodejs): add ability to be able to enable/disable active instrumentations by env var
…L_NODE_DISABLED_INSTRUMENTATIONS Extends PR open-telemetry#1653 to make AWS-specific instrumentations (aws-lambda, aws-sdk) also respect the OTEL_NODE_DISABLED_INSTRUMENTATIONS environment variable. Previously, these instrumentations were always loaded regardless of the disable flag. Now they follow the same conditional loading pattern as other instrumentations. Fixes: Users can now disable AWS Lambda auto-instrumentation in dev mode
No description provided.