Skip to content

Normalize user agent from span span.data #3815

Closed

Description

@Lms24

The JS Browser SDKs will soon send the user agent string from span.data["user_agent.original"] in standalone INP spans (getsentry/sentry-javascript#12689). This is done to ensure that whenever we can obtain the user agent in the SDK, it is actually sent to Sentry when sending INP spans. In several tunnelling-related scenarios (e.g. NextJS or custom tunnels), we previously lost the user agent data, causing INP spans to no longer be processed correctly. Our INP score calculation relies on the user agent so we should deliver it as often as possible.

Therefore, Relay needs to extract (and I guess parse?) the user agent string from span data, specifically span.data["user_agent.original"]. If this attribute is not present, we should fall back to the previously used user agent extraction method.

Activity

  1. added
    bug
    on Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions