Skip to content

feat(react): Update scope's transactionName in React Router instrumentations #11048

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 2 commits into from
Mar 12, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 12, 2024

This PR adds updating of the current scope's transactionName value to our React Router instrumentations (i.e. reactRoutervXbrowserTracingIntegrations).

Only the v4/5 and v6 integrations needed changes because v3 doesn't retroactively update a transaction name either. We only have to care about transaction name updates here because the start(Pageload|Navigation)Span helper functions already set the initial name onto the scope (via #10992).

Added unit tests to all RR versions.

Before merging, I'll add an e2e to one of our RR6 e2e test apps Actually, this requires some changes to our react e2e test fixture. I'll open a follow-up PR to keep things simpler.

ref: #10846

@Lms24 Lms24 changed the base branch from develop to lms/feat-browser-scope-setTransactionName March 12, 2024 13:11
@Lms24 Lms24 changed the title feat(react): Update scope's transactionName in router instrumentations feat(react): Update scope's transactionName in React Router instrumentations Mar 12, 2024
@Lms24 Lms24 self-assigned this Mar 12, 2024
Base automatically changed from lms/feat-browser-scope-setTransactionName to develop March 12, 2024 14:52
@Lms24 Lms24 force-pushed the lms/feat-react-auto-update-transactionName branch from 9d16569 to 7680875 Compare March 12, 2024 15:16
@Lms24 Lms24 merged commit 963c3de into develop Mar 12, 2024
@Lms24 Lms24 deleted the lms/feat-react-auto-update-transactionName branch March 12, 2024 16:43
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