EnrichWithHttpRequest - Changes to Activity DisplayName gets overridden with route template/path in AspNetCoreInstrumentation #3977
Labels
bug
Something isn't working
Milestone
Bug Report
Here is a small snippet to repro the issue
Symptom
We need the ability to setup DisplayName of the activity as part of the request flow - it looks like OT ends up changing the DisplayName based on the route template somewhere along the request lifecycle.
What is the expected behavior?
What did you expect to see?
What is the actual behavior?
What did you see instead?
Reproduce
See code snippet above with repro.
Packages used while reproducing
OpenTelemetry 1.4.0-beta.3
OpenTelemetry.Api 1.4.0-beta.3
OpenTelemetry.Exporter.CredScan 2.0.12
OpenTelemetry.Extensions.Hosting 1.0.0-rc9.9
OpenTelemetry.Exporter.Zipkin 1.4.0-beta.3
OpenTelemetry.Exporter.Geneva 1.4.0-beta.5
OpenTelemetry.Instrumentation.AspNetCore 1.0.0-rc9.9
OpenTelemetry.Instrumentation.GrpcNetClient 1.0.0-rc9.9
OpenTelemetry.Instrumentation.Http 1.0.0-rc9.9
OpenTelemetry.Instrumentation.Process 1.0.0-alpha.2
OpenTelemetry.Instrumentation.Runtime 1.1.0-beta.1
Runtime version: net7.0
The text was updated successfully, but these errors were encountered: