You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you requesting automatic instrumentation for a framework or library? Please describe.
No
Is your feature request related to a problem? Please describe.
The current instrumentation for Asp.Net provides the route template as a basis for span name. However, when the application is using conventional routing, the template might refer to many unrelated operations.
For example, if the route template is "{controller}/{action}" then both the following URLs will have "{controller}/{action} as their span name:
/Products/List
/Users/Add
This creates confusion when analyzing spans based on the name (e.g. aggregating performance metrics per http route)
Describe the solution you'd like
We know the URL path, so replace the {controller} and {action} by their respective components of the URL path.
Describe alternatives you've considered
Add special .net-specific handling of Asp.Net spans
Additional context
Usually we prefer the route template over URI path because of possible high cardinality in the path. The {controller} and {action} template components do not signify high cardinality.