Skip to content

contexts.trace.origin rejected due to invalid character - when using React Router v7 (SSR) #18350

@dalnoki

Description

@dalnoki

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react-router

SDK Version

10.25.0

Framework Version

React v19.2.0 and react-router v7.9.4 in framework mode

Link to Sentry event

https://surf-ai.sentry.io/issues/7049988563/

Reproduction Example/SDK Setup

see linear ticket

Steps to Reproduce

While running the Sentry integration for a React Router v7 SSR app, Sentry reports a processing error for the field:

Name: contexts.trace.origin
Value: auto.navigation.react-router
Reason: invalid character '-'

This appears to be automatically generated by Sentry’s integration, not something set manually.

Expected Result

Sentry should accept the automatically generated contexts.trace.origin value from the React Router integration, or the integration should avoid producing invalid values

Actual Result

Sentry rejects the field value containing hyphens

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions