Skip to content

Sentry event detail breaks when using google text to speech v5+ #14657

Closed
@bahadirkisbet

Description

@bahadirkisbet

Is there an existing issue for this?

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

https://base64ai.sentry.io/issues/6129490763/events/?environment=development&project=6073061&referrer=issue-stream&statsPeriod=30d&stream_index=0

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
Image

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.
Image

Expected Result

The following fields should exist in the event:

  1. Transaction
  2. User
  3. Url

Image

Actual Result

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions