File tree 1 file changed +16
-6
lines changed
content/en/docs/kubernetes/operator
1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -282,12 +282,22 @@ must be able to receive OTLP over `grpc`. Therefore, the example uses
282
282
283
283
#### Excluding auto-instrumentation {#js-excluding-auto-instrumentation}
284
284
285
- By default, the Node.js auto-instrumentation ships with
286
- [ many instrumentation libraries] ( https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/metapackages/auto-instrumentations-node/README.md#supported-instrumentations ) .
287
- At the moment, there is no way to opt-in to only specific packages or disable
288
- specific packages. If you don't want to use a package included by the default
289
- image you must either supply your own image that includes only the packages you
290
- want or use manual instrumentation.
285
+ By default, the Node.js auto-instrumentation has all the instrumentation libraries enabled.
286
+
287
+ To enable only specific instrumentations you can use the ` OTEL_NODE_ENABLED_INSTRUMENTATIONS ` environment variable as documented in the
288
+ [ Node.js auto-instrumentation documentation] ( /docs/languages/js/automatic/configuration/#excluding-auto-instrumentation ) .
289
+
290
+ ``` yaml
291
+ apiVersion : opentelemetry.io/v1alpha1
292
+ kind : Instrumentation
293
+ # ... other fields skipped from this example
294
+ spec :
295
+ # ... other fields skipped from this example
296
+ nodejs :
297
+ env :
298
+ - name : OTEL_NODE_ENABLED_INSTRUMENTATIONS
299
+ value : http,nestjs-core # comma-separated list of the instrumentation package names without the `@opentelemetry/instrumentation-` prefix.
300
+ ` ` `
291
301
292
302
#### Learn more {#js-learn-more}
293
303
You can’t perform that action at this time.
0 commit comments