You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(auto-instr-node): show result of setting both env vars (#2325)
* test(auto-instr-node): show result of setting both env vars
OTEL_NODE_ENABLED_INSTRUMENTATIONS
and
OTEL_NODE_DISABLED_INSTRUMENTATIONS
environment variables are mutually exclusive.
All instrumentations are disabled when both are set.
* update to more reliable test and update docs
* remove unnecessary debug line
---------
Co-authored-by: Amir Blum <[email protected]>
Copy file name to clipboardExpand all lines: metapackages/auto-instrumentations-node/README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,9 @@ To disable only [@opentelemetry/instrumentation-fs](https://github.com/open-tele
97
97
export OTEL_NODE_DISABLED_INSTRUMENTATIONS="fs"
98
98
```
99
99
100
+
If both environment variables are set, `OTEL_NODE_ENABLED_INSTRUMENTATIONS` is applied first, and then `OTEL_NODE_DISABLED_INSTRUMENTATIONS` is applied to that list.
101
+
Therefore, if the same instrumentation is included in both lists, that instrumentation will be disabled.
102
+
100
103
To enable logging for troubleshooting, set the log level by setting the `OTEL_LOG_LEVEL` environment variable to one of the following:
0 commit comments