© 2026 Hedgehog Software, LLC
@effect/opentelemetry
NodeSDK
@opentelemetry/auto-instrumentations-node
const { registerInstrumentations } = require('@opentelemetry/instrumentation'); registerInstrumentations({ instrumentations: [ getNodeAutoInstrumentations({ // load custom configuration for http instrumentation '@opentelemetry/instrumentation-http': { applyCustomAttributesOnSpan: (span) => { span.setAttribute('foo2', 'bar2'); }, }, }), ], });