Skip to content
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

fix: Strip query and fragment from Angular tracing URLs #2874

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek requested a review from a team September 2, 2020 09:59
@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2020

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 17.68 KB (+0.02% 🔺)
@sentry/browser - Webpack 18.47 KB (0%)
@sentry/react - Webpack 18.47 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 22.79 KB (+0.01% 🔺)

@rhcarvalho rhcarvalho changed the title fix: Strip query and fraagment from Angulars tracing urls fix: Strip query and fragment from Angular tracing URLs Sep 2, 2020
op: 'navigation',
});
}

if (activeTransaction) {
this._routingSpan = activeTransaction.startChild({
description: `${navigationEvent.url}`,
description: `${strippedUrl}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we have already the stripped URL in the transaction name and the tag, would it make sense to keep the full URL here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Your call, I'm fine with any cc @HazAT

Copy link
Member

Choose a reason for hiding this comment

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

yeah, the change is to improve transaction grouping having the full URL here just provides more insights. So I am pro Full URL in description

Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

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

LGTM, one question before we merge.

@kamilogorek kamilogorek merged commit d315f0f into master Sep 2, 2020
@kamilogorek kamilogorek deleted the unify-angular-transaction-url branch September 2, 2020 11:42
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.

None yet

3 participants