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

Use URL path in transaction names instead of "Unknown Route" #1919

Merged
merged 4 commits into from
Sep 15, 2022

Conversation

mattjohnsonpint
Copy link
Contributor

Now that we have TransactionNameSource (see #1910), we no longer need to send "Unknown Route" if we can't identify the route for a web request. Instead, we'll use the URL path, and set TransactionNameSource.Url.

Also, if the route is set via SentryAspNetCoreOptions.TransactionNameProvider, then we'll continue to use that - but will set TransactionNameSource.Custom.

Only when we've actually got a route should we set TransactionNameSource.Route.

Comment on lines +26 to +27
Name: OPTIONS /Target,
NameSource: Url,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note, that this essentially would handle #1835, except that we've decided to no longer sent pre-flight requests. The work to remove such transactions will come separately by @SimonCropp.

@mattjohnsonpint mattjohnsonpint merged commit 6fdbe57 into main Sep 15, 2022
@mattjohnsonpint mattjohnsonpint deleted the unknown-route branch September 15, 2022 04:06
@mattjohnsonpint mattjohnsonpint mentioned this pull request Oct 6, 2022
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.

Replace "Unknown Route" with the raw URL and a transaction annotation
2 participants