|
9 | 9 | severityLevelFromString, |
10 | 10 | withScope, |
11 | 11 | } from '@sentry/core'; |
12 | | -import { addInstrumentationConfig } from '../sdk/injectLoader'; |
13 | 12 |
|
14 | 13 | const SENTRY_TRACK_SYMBOL = Symbol('sentry-track-pino-logger'); |
15 | 14 |
|
@@ -128,18 +127,6 @@ const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions |
128 | 127 | setup: client => { |
129 | 128 | const enableLogs = !!client.getOptions().enableLogs; |
130 | 129 |
|
131 | | - addInstrumentationConfig({ |
132 | | - channelName: 'pino-log', |
133 | | - // From Pino v9.10.0 a tracing channel is available directly from Pino: |
134 | | - // https://github.com/pinojs/pino/pull/2281 |
135 | | - module: { name: 'pino', versionRange: '>=8.0.0 < 9.10.0', filePath: 'lib/tools.js' }, |
136 | | - functionQuery: { |
137 | | - functionName: 'asJson', |
138 | | - kind: 'Sync', |
139 | | - }, |
140 | | - }); |
141 | | - |
142 | | - const injectedChannel = diagnosticsChannel.tracingChannel('orchestrion:pino:pino-log'); |
143 | 130 | const integratedChannel = diagnosticsChannel.tracingChannel('pino_asJson'); |
144 | 131 |
|
145 | 132 | function onPinoStart(self: Pino, args: PinoHookArgs, result: PinoResult): void { |
@@ -192,11 +179,6 @@ const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions |
192 | 179 | } |
193 | 180 | } |
194 | 181 |
|
195 | | - injectedChannel.end.subscribe(data => { |
196 | | - const { self, arguments: args, result } = data as { self: Pino; arguments: PinoHookArgs; result: string }; |
197 | | - onPinoStart(self, args, JSON.parse(result)); |
198 | | - }); |
199 | | - |
200 | 182 | integratedChannel.end.subscribe(data => { |
201 | 183 | const { |
202 | 184 | instance, |
|
0 commit comments