Is there an existing issue for this?
Describe the bug
OTEL folks noticed that the endpoint is cleared when exception middleware runs. See open-telemetry/opentelemetry-dotnet#5134
Investigate whether this impacts ASP.NET Core's use of the endpoint when building tags for metrics.
Expected Behavior
Metrics endpoint route tag is present when exception middleware runs.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
net8.0
Anything else?
No response
Is there an existing issue for this?
Describe the bug
OTEL folks noticed that the endpoint is cleared when exception middleware runs. See open-telemetry/opentelemetry-dotnet#5134
Investigate whether this impacts ASP.NET Core's use of the endpoint when building tags for metrics.
Expected Behavior
Metrics endpoint route tag is present when exception middleware runs.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
net8.0
Anything else?
No response