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

Improve endpoint route template detection for minimal APIs #2332

Open
stevejgordon opened this issue Apr 15, 2024 · 0 comments
Open

Improve endpoint route template detection for minimal APIs #2332

stevejgordon opened this issue Apr 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stevejgordon
Copy link
Contributor

stevejgordon commented Apr 15, 2024

When using the APM agent with ASP.NET Core minimal APIs, the transaction will default to using the path in the name, which can lead to high-cardinality transaction names and difficulty analysing them in the APM UI. This is because the current APM code expects to look for controller or page routing information, which is not present for minimal APIs.

We should enhance WebRequestTransactionCreator.StopTransaction to extract a more relevant transaction name for minimal API requests.

As a workaround, the new transaction_name_groups feature will support a way to manually group transactions for minimal APIs.

@stevejgordon stevejgordon added the enhancement New feature or request label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant