Skip to content

Commit 80faaf1

Browse files
committed
bump @opentelemetry/auto-instrumentations-node
to allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` #2622
1 parent 2409359 commit 80faaf1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action)
5+
component: auto-instrumentation
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: "Bump NodeJS autoinstrumentations dependency to a version that supports enabling selected instrumentations via environment variable."
9+
10+
# One or more tracking issues related to the change
11+
issues: [2622]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext: |
17+
See [the documentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/metapackages/auto-instrumentations-node#usage-auto-instrumentation) for details.
18+
Usage example: `export OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,nestjs-core"`.

autoinstrumentation/nodejs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@opentelemetry/api": "1.7.0",
18-
"@opentelemetry/auto-instrumentations-node": "0.40.2",
18+
"@opentelemetry/auto-instrumentations-node": "0.43.0",
1919
"@opentelemetry/exporter-metrics-otlp-grpc": "0.46.0",
2020
"@opentelemetry/exporter-prometheus": "0.46.0",
2121
"@opentelemetry/exporter-trace-otlp-grpc": "0.46.0",

0 commit comments

Comments
 (0)