HTTP OPTIONS request , transaction name(display name) is shown as request path instead of HTTP route ( template ) in asp.net core api app #2967
Labels
bug
Something isn't working
Milestone
Bug Report
HTTP OPTIONS request, transaction name(display name) is shown as request path instead of HTTP route ( template ) in asp.net core api app
Expected transaction name(display name) : Todo/{tenantid}/{version}
What is shown is : /todo/456-123-56abc-x134/2022-02-01
It seems to happen for HTTP OPTIONS request ,like browser HTTP OPTIONS pre-flight request to check the CORS.
List of all OpenTelemetry NuGet
packages](https://www.nuget.org/profiles/OpenTelemetry) and version that you are
using (e.g.
OpenTelemetry 1.0.2
):ASP.NET Core 3.1 , Windows 10
Zipkin & Console exporter is configured
OTel version
Runtime version :
ASP.NET Core 3.1 , Windows 10
Symptom
For HTTP OPTIONS request, transaction name(display name) is shown as request path instead of HTTP route ( template ) in asp.net core api app
What is the expected behavior?
Expected transaction name (display name): Todo/{tenantid}/{version}
What is the actual behavior?
What is shown is : /todo/456-123-56abc-x134/2022-02-01
Reproduce
Any ASP.NET Core 3.1 API app with above packages & send HTTP OPTIONS request ,like browser HTTP OPTIONS pre-flight request to check the CORS.
POST request
OPTIONS request
C# Sample
We will close this issue if:
projects, so don't point us to such, please.
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: