Skip to content

Investigate metrics endpoint behavior when exception middleware runs #52648

@JamesNK

Description

@JamesNK

Is there an existing issue for this?

  • I have searched the existing issues

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

Metadata

Metadata

Assignees

Labels

area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions