Skip to content

[Draft] Capture the exception behind the HTTP/1.1 request-duration metric failure - #137999

Draft
ManickaP wants to merge 1 commit into
dotnet:mainfrom
ManickaP:investigate-http-metrics-137980
Draft

ManickaP wants to merge 1 commit into
dotnet:mainfrom
ManickaP:investigate-http-metrics-137980

Conversation

@ManickaP

Copy link
Copy Markdown
Member

Investigates #137980. The Windows x86 Helix log reports error.type = System.Net.Http.HttpRequestException, but does not show the underlying exception. The metric falls back to the exception type name when there is no more specific HTTP error classification.

When RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded fails an assertion, include the client exception with its inner exceptions and stack trace, HttpRequestError, and the managed and native socket error codes if the root exception is a SocketException. Rethrow the original assertion without changing the accepted tags or the loopback scenario.

This draft is for collecting evidence on the next Windows x86 occurrence, not for merging or closing the issue. Local validation was stopped; no passing test run is claimed.

Note

This draft was prepared with GitHub Copilot.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2ca14e66-92e5-42af-b2dc-37861bc47fd6
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
11 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant