Skip to content

Commit 54aa7e8

Browse files
committed
fix(node): tracingChannel export missing in older node versions
1 parent 2deb000 commit 54aa7e8

File tree

1 file changed

+3
-3
lines changed
  • packages/node-core/src/integrations

1 file changed

+3
-3
lines changed

packages/node-core/src/integrations/pino.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { tracingChannel } from 'node:diagnostics_channel';
1+
import * as diagnosticsChannel from 'node:diagnostics_channel';
22
import type { Integration, IntegrationFn, LogSeverityLevel } from '@sentry/core';
33
import {
44
_INTERNAL_captureLog,
@@ -122,8 +122,8 @@ const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions
122122
},
123123
});
124124

125-
const injectedChannel = tracingChannel('orchestrion:pino:pino-log');
126-
const integratedChannel = tracingChannel('pino_asJson');
125+
const injectedChannel = diagnosticsChannel.tracingChannel('orchestrion:pino:pino-log');
126+
const integratedChannel = diagnosticsChannel.tracingChannel('pino_asJson');
127127

128128
function onPinoStart(self: Pino, args: PinoHookArgs, result: PinoResult): void {
129129
if (!shouldTrackLogger(self)) {

0 commit comments

Comments
 (0)