Route constraint in OpenTelemetry.Instrumentation.AspNetCore #4432
dominikjeske
started this conversation in
General
Replies: 1 comment
-
Yes - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My API controllers have route constraints - for example "/api/sample/{channel:ib}/v{v:apiVersion}/[controller]/[action]" and because of this metric is not reporting actual path because it uses RoutePattern.RawText (
opentelemetry-dotnet/src/OpenTelemetry.Instrumentation.AspNetCore/Implementation/HttpInMetricsListener.cs
Line 95 in ef0c921
Actual call:
"/api/sample/ib/v1/controller/action"
Mteric output:
"/api/sample/{channel:ib}/v{v:apiVersion}/controller/action"
Is this behavior expected?
Beta Was this translation helpful? Give feedback.
All reactions