Support for Enrich when using WithMetrics #2333
Labels
comp:instrumentation.aspnetcore
Things related to OpenTelemetry.Instrumentation.AspNetCore
enhancement
New feature or request
Component
OpenTelemetry.Instrumentation.AspNetCore
Is your feature request related to a problem?
No response
What is the expected behavior?
When using
AddAspNetCoreInstrumentation
, there is no way to addEnrich
usingWithMetrics
(as described here). It would be nice to have the possibility to update the activity so we can change the route according. My issue is that I am using version control and all the metrics are send out as "/api/v{version:apiVersion}" for the route nameUpdating the activity would allow us to change the route name from
GET /api/v{version:apiVersion}/
toGET /api/v1/
I am using NET 8 with minimal API
Which alternative solutions or features have you considered?
Update the route automatically as describe there here
Additional context
No response
The text was updated successfully, but these errors were encountered: