-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ref(node-core): Drop pino<9.10 support
#18631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ import { | |
| severityLevelFromString, | ||
| withScope, | ||
| } from '@sentry/core'; | ||
| import { addInstrumentationConfig } from '../sdk/injectLoader'; | ||
|
|
||
| const SENTRY_TRACK_SYMBOL = Symbol('sentry-track-pino-logger'); | ||
|
|
||
|
|
@@ -128,18 +127,6 @@ const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions | |
| setup: client => { | ||
| const enableLogs = !!client.getOptions().enableLogs; | ||
|
|
||
| addInstrumentationConfig({ | ||
| channelName: 'pino-log', | ||
| // From Pino v9.10.0 a tracing channel is available directly from Pino: | ||
| // https://github.com/pinojs/pino/pull/2281 | ||
| module: { name: 'pino', versionRange: '>=8.0.0 < 9.10.0', filePath: 'lib/tools.js' }, | ||
| functionQuery: { | ||
| functionName: 'asJson', | ||
| kind: 'Sync', | ||
| }, | ||
| }); | ||
|
|
||
| const injectedChannel = diagnosticsChannel.tracingChannel('orchestrion:pino:pino-log'); | ||
| const integratedChannel = diagnosticsChannel.tracingChannel('pino_asJson'); | ||
|
|
||
| function onPinoStart(self: Pino, args: PinoHookArgs, result: PinoResult): void { | ||
|
Comment on lines
127
to
132
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Pino integration requires v9.10+ but documentation wasn't updated and no version check was added, causing silent failure on older versions. Suggested FixUpdate the JSDoc to state that Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
@@ -192,11 +179,6 @@ const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions | |
| } | ||
| } | ||
|
|
||
| injectedChannel.end.subscribe(data => { | ||
| const { self, arguments: args, result } = data as { self: Pino; arguments: PinoHookArgs; result: string }; | ||
| onPinoStart(self, args, JSON.parse(result)); | ||
| }); | ||
|
|
||
| integratedChannel.end.subscribe(data => { | ||
| const { | ||
| instance, | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover type declaration for removed dependency
Low Severity
The
@apm-js-collab/tracing-hooksand@apm-js-collab/code-transformerdependencies were removed, but their type declaration file atpackages/node-core/src/sdk/apm-js-collab-tracing-hooks.d.tswas not deleted. This is now dead code that references non-existent packages.