Skip to content

INP spans sent via tunnel fail because they are missing the expected "dsn" property #12094

Closed

Description

@mfb

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.2.1

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

I enabled the tunnel option pointing at my tunnel controller, which looks for a dsn property in the first part of the payload. This has always worked fine with v7, and I believe is correct according to the tunnel docs at https://docs.sentry.io/platforms/javascript/troubleshooting/

On v8, the dsn property is missing for INP spans. Seems like this is a bug in v8? Or else, tunnels would need to be modified to work without receiving the "dsn" property.

Expected Result

On v7, the tunnel payload for INP spans looks like this (note the dsn property):

{"sent_at":"2024-05-17T03:57:01.321Z","dsn":"https://foo@ingest.us.sentry.io/bar"}
{"type":"span"}
{"data":{"sentry.origin":"manual","sentry.op":"ui.interaction.click"...

Actual Result

On v8 the tunnel payload is missing the dsn property:

{"sent_at":"2024-05-17T04:04:23.208Z","trace":{"trace_id":"c13cef34cd1248b3917969b9f20c4acb","sample_rate":"1","transaction":"GET /node","public_key":"foo","environment":"prod","sampled":"true"}}
{"type":"span"}
{"data":{"sentry.origin":"manual","sentry.op":"ui.interaction.click"...

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 17, 2024
  2. mydea commented on May 17, 2024

    @mydea
    Member

    hey, thanks for reporting this, we'll look into this - maybe something got lost in translation on the way to v8 there!

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 17, 2024
  4. self-assigned this
    on May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions