Skip to content

fix(apm): Adjust transaction name normalization #18968

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 3 commits into from
May 21, 2020

Conversation

dashed
Copy link
Member

@dashed dashed commented May 21, 2020

A follow up change to #18822


Make some adjustments to the transaction name normalization:

  • If the transaction name is a blank string, then fallback to window.location.pathname
  • If getRouteStringFromRoutes() function returns either a blank string or /*, then fallback to window.location.pathname
  • If react-router's match() function returns an error (it likely shouldn't), then fallback to window.location.pathname

@dashed dashed requested review from billyvg and a team May 21, 2020 19:18
@dashed dashed self-assigned this May 21, 2020
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

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

Should we try to normalize some of the server rendered urls?

@dashed
Copy link
Member Author

dashed commented May 21, 2020

@billyvg We definitely should try to normalize server rendered urls; I'm going to think on this for a bit. I'll open another PR for this.

@dashed dashed merged commit 1ddeb4e into master May 21, 2020
@dashed dashed deleted the apm-adjust-transaction-normalization branch May 21, 2020 22:45
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants