Skip to content

Commit c550c3f

Browse files
authored
feat: disable metrics from (#23)
@opentelemetry/instrumentation-runtime-node
1 parent d357b29 commit c550c3f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/blue-things-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@inato/custom-instrumentations-node": minor
3+
---
4+
5+
Disable @opentelemetry/instrumentation-runtime-node

src/register.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const sdk = new opentelemetry.NodeSDK({
2323
// we ignore self telemetry for the calls to the collector from the span producers
2424
"@opentelemetry/instrumentation-undici": {
2525
ignoreRequestHook: (req) => /\/v1\/(metrics|traces|logs)/.test(req.path)
26+
},
27+
"@opentelemetry/instrumentation-runtime-node": {
28+
enabled: false
2629
}
2730
}),
2831
resourceDetectors: getResourceDetectors(),

0 commit comments

Comments
 (0)