Skip to content

fix(apm): Adjust transaction name normalization#18968

Merged
dashed merged 3 commits into
masterfrom
apm-adjust-transaction-normalization
May 21, 2020
Merged

fix(apm): Adjust transaction name normalization#18968
dashed merged 3 commits into
masterfrom
apm-adjust-transaction-normalization

Conversation

@dashed
Copy link
Copy Markdown
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 a team and billyvg May 21, 2020 19:18
@dashed dashed self-assigned this May 21, 2020
Copy link
Copy Markdown
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
Copy Markdown
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