Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.43.0
Framework Version
Node 22.11.0
Link to Sentry event
Reproduction Example/SDK Setup
I have this SDK setup
Sentry.init({
dsn: <my_dsn>,
environment: process.env.SENTRY_ENVIRONMENT,
tracesSampleRate: 1,
profilesSampleRate: 0.1,
integrations: [
Sentry.httpIntegration({ tracing: false }),
Sentry.expressIntegration({ app }),
nodeProfilingIntegration()
],
serverName: global.serverName,
beforeBreadcrumb (breadcrumb, _hint) {
if (breadcrumb.category === 'http') {
return null
}
return breadcrumb
},
beforeSendTransaction (event) {
if (!isTimeout(event)) {
return null
}
if (!event?.transaction?.match(/(\/metrics|\/api\/health)/)) {
return processSensitiveInformation(event)
}
return null
},
beforeSend (event) {
// some code
}
})
Steps to Reproduce
I have "@google-cloud/text-to-speech": "^4.0.7",
installed. Then, I did throw sentry error and got the last result as seen in the SS
After that, I upgraded this packaged to "@google-cloud/text-to-speech": "^5.6.0",
and I have some fields that are not coming to my event object properly. From the screen shot, you may see that we got user and transaction info undefined.
Expected Result
The following fields should exist in the event:
- Transaction
- User
- Url
Actual Result
Metadata
Metadata
Assignees
Type
Projects
Status
No status