Skip to content
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

[operator/nodejs] document disabling node auto-instrumentations #4824

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
svrnm authored Jul 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 268735f534ff30bcd784439881375154997d5277
12 changes: 8 additions & 4 deletions content/en/docs/kubernetes/operator/automatic.md
Original file line number Diff line number Diff line change
@@ -317,10 +317,14 @@ spec:
value: fs,grpc # comma-separated list of the instrumentation package names without the `@opentelemetry/instrumentation-` prefix.
```

> If both environment variables are set, `OTEL_NODE_ENABLED_INSTRUMENTATIONS` is
> applied first, and then `OTEL_NODE_DISABLED_INSTRUMENTATIONS` is applied to
> that list. Therefore, if the same instrumentation is included in both lists,
> that instrumentation will be disabled.
{{% alert title="Note" color="info" %}}

If both environment variables are set, `OTEL_NODE_ENABLED_INSTRUMENTATIONS` is
applied first, and then `OTEL_NODE_DISABLED_INSTRUMENTATIONS` is applied to
that list. Therefore, if the same instrumentation is included in both lists,
that instrumentation will be disabled.

{{% /alert %}}

#### Learn more {#js-learn-more}

12 changes: 8 additions & 4 deletions content/en/docs/zero-code/js/configuration.md
Original file line number Diff line number Diff line change
@@ -86,7 +86,11 @@ instrumentations:
OTEL_NODE_DISABLED_INSTRUMENTATIONS="fs,grpc"
```

> If both environment variables are set, `OTEL_NODE_ENABLED_INSTRUMENTATIONS` is
> applied first, and then `OTEL_NODE_DISABLED_INSTRUMENTATIONS` is applied to
> that list. Therefore, if the same instrumentation is included in both lists,
> that instrumentation will be disabled.
{{% alert title="Note" color="info" %}}

If both environment variables are set, `OTEL_NODE_ENABLED_INSTRUMENTATIONS` is
applied first, and then `OTEL_NODE_DISABLED_INSTRUMENTATIONS` is applied to
that list. Therefore, if the same instrumentation is included in both lists,
that instrumentation will be disabled.

{{% /alert %}}