8000 feat(react-router): Add otel instrumentation for server requests by chargome · Pull Request #16147 · getsentry/sentry-javascript · GitHub
[go: up one dir, main page]

Skip to content

feat(react-router): Add otel instrumentation for server requests #16147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 14, 2025

Conversation

chargome
Copy link
Member
@chargome chargome commented Apr 28, 2025

This PR adds OpenTelemetry instrumentation for server-side requests in React Router by tracing server requests for data loaders and actions.

@chargome chargome self-assigned this Apr 28, 2025
@chargome
Copy link
Member Author
chargome commented Apr 29, 2025

Potentially blocked by #16160
good to go

@chargome chargome marked this pull request as ready for review May 12, 2025 14:57

// Set the source and overwrite attributes on the root span to ensure the transaction name
// is derived from the raw URL pathname rather than any parameterized route that may be set later
// TODO: try to set derived parameterized route from build here (args[0])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

want to ship this in a follow-up

Copy link
Member
@andreiborza andreiborza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@chargome chargome merged commit 26731ed into develop May 14, 2025
133 checks passed
@chargome chargome deleted the cg-rr-server-loaders branch May 14, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0