-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(node): Only setup orchestrion channel listeners when needed #22312
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
43866e7
ee28dc2
1bc3345
f58c8a3
e2b7d8b
b734ee2
03033bc
acd44ec
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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| import type { IntegrationFn } from '@sentry/core'; | ||
| import { defineIntegration } from '@sentry/core'; | ||
| import type { FastifyIntegration, FastifyReply, FastifyRequest } from './types'; | ||
|
|
||
| import { instrumentFastify as _instrumentFastify } from './instrumentation'; | ||
| import { defaultShouldHandleError, INTEGRATION_NAME } from './utils'; | ||
| import { subscribeToFastifyErrorChannel, handleFastifyError as _handleFastifyError } from './errors'; | ||
|
|
@@ -76,9 +75,7 @@ const _fastifyIntegration = (({ shouldHandleError }: Partial<FastifyIntegrationO | |
| * }) | ||
| * ``` | ||
| */ | ||
| export const fastifyIntegration = defineIntegration((options: Partial<FastifyIntegrationOptions> = {}) => | ||
| _fastifyIntegration(options), | ||
| ); | ||
| export const fastifyIntegration = defineIntegration(_fastifyIntegration); | ||
|
Member
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. q: Just for my understanding, not to miss anything. The Fastify changes are unrelated theoretically right? Ok to land here, since they are small changes 🤏 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. Fastify integration crashes without optionsHigh Severity Exporting Reviewed by Cursor Bugbot for commit acd44ec. Configure here. |
||
|
|
||
| /** | ||
| * @deprecated This export is deprecated and will not longer be exposed in the next major version. | ||
|
|
||


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.
cc @isaacs do we actually need this? Can we properly inject this with the correct modules somehow?