Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: open-telemetry/opentelemetry.io
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 30c355ab22cd16ee26729aa9c10d509a90ea4f31
Choose a base ref
..
head repository: open-telemetry/opentelemetry.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 92478addf5470c97bf6e407ae1f7298c7b9a52ae
Choose a head ref
Showing with 10 additions and 6 deletions.
  1. +4 −2 content/en/docs/kubernetes/operator/automatic.md
  2. +6 −4 content/en/docs/languages/js/automatic/configuration.md
6 changes: 4 additions & 2 deletions content/en/docs/kubernetes/operator/automatic.md
Original file line number Diff line number Diff line change
@@ -282,9 +282,11 @@ must be able to receive OTLP over `grpc`. Therefore, the example uses

#### Excluding auto-instrumentation {#js-excluding-auto-instrumentation}

By default, the Node.js auto-instrumentation has all the instrumentation libraries enabled.
By default, the Node.js auto-instrumentation has all the instrumentation
libraries enabled.

To enable only specific instrumentations you can use the `OTEL_NODE_ENABLED_INSTRUMENTATIONS` environment variable as documented in the
To enable only specific instrumentations you can use the
`OTEL_NODE_ENABLED_INSTRUMENTATIONS` environment variable as documented in the
[Node.js auto-instrumentation documentation](/docs/languages/js/automatic/configuration/#excluding-auto-instrumentation).

```yaml
10 changes: 6 additions & 4 deletions content/en/docs/languages/js/automatic/configuration.md
Original file line number Diff line number Diff line change
@@ -44,13 +44,15 @@ OTEL_NODE_RESOURCE_DETECTORS=env,host

By default, all
[supported instrumentation libraries](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/metapackages/auto-instrumentations-node/README.md#supported-instrumentations)
are enabled,
but you can use the environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` to enable only certain instrumentations
by providing a comma-separated list of the instrumentation package names without the `@opentelemetry/instrumentation-` prefix.
are enabled, but you can use the environment variable
`OTEL_NODE_ENABLED_INSTRUMENTATIONS` to enable only certain instrumentations by
providing a comma-separated list of the instrumentation package names without
the `@opentelemetry/instrumentation-` prefix.

For example, to enable only
[@opentelemetry/instrumentation-http](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-instrumentation-http)
and [@opentelemetry/instrumentation-nestjs-core](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-nestjs-core)
and
[@opentelemetry/instrumentation-nestjs-core](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-nestjs-core)

Check warning on line 55 in content/en/docs/languages/js/automatic/configuration.md

GitHub Actions / SPELLING check

Unknown word (nestjs)
instrumentations:

```shell