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

feat(tracing): Add beforeNavigate option #2691

Merged
merged 5 commits into from Jun 22, 2020

Conversation

AbhiPrasad
Copy link
Member

This PR adds a beforeNavigate option to the Tracing integration. It allows for users of the integration to change the transaction name before a navigation/pageload transaction has been created.

Currently it defaults to setting the transaction name to location.pathname (changed from location.href because we don't want to include query params).

Not sure if beforeNavigate is the best name here, so open to alternatives.

@AbhiPrasad AbhiPrasad marked this pull request as ready for review June 22, 2020 12:50
@AbhiPrasad AbhiPrasad requested a review from HazAT June 22, 2020 12:50
@getsentry-bot
Copy link
Contributor

getsentry-bot commented Jun 22, 2020

Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 17.1377 kB) (ES6: 16.251 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against d8d4540

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