Skip to content

fix(node): Add mechanism to fastifyIntegration error handler #17208

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

Merged
merged 1 commit into from
Jul 29, 2025

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jul 29, 2025

While investigating #17119, I saw that our fastifyIntegration error handler doesn't set a mechanism when calling captureException. This leads to the SDK assigning the generic fallback mechanism and marking the error as handled: true. This makes it hard to 1. identify that the error was captured by our fastify instrumentation and 2. marks the error as handled, when it's probably not.

This PR now marks the captured error as { handled: false, type: 'fastify' }

@Lms24 Lms24 requested review from onurtemizkan, a team, mydea and AbhiPrasad and removed request for a team and mydea July 29, 2025 12:53
@Lms24 Lms24 changed the title fix(node): Add mechanism to fastifyIntegration error handler fix(node): Add mechanism to fastifyIntegration error handler Jul 29, 2025
@Lms24 Lms24 self-assigned this Jul 29, 2025
@Lms24 Lms24 merged commit 33b23e0 into develop Jul 29, 2025
130 checks passed
@Lms24 Lms24 deleted the lms/fix-node-fastify-error-mechanism branch July 29, 2025 13:36
Lms24 added a commit that referenced this pull request Jul 29, 2025
Marks the captured error as `{ handled: false, type: 'fastify' }`
Lms24 added a commit that referenced this pull request Jul 29, 2025
…7211)

Backport of #17208 

Marks the captured error as `{ handled: false, type: 'fastify' }`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants