System.Net.Dns.RunAsync() does not decrement telemetry for canceled requests #92045
Labels
area-System.Net
bug
in-pr
There is an active PR which will close this issue when it is merged
tenet-reliability
Reliability/stability related issue (stress, load problems, etc.)
Milestone
If a call that ends up in
Dns.RunAsync()
is canceled, nothing ever callsNameResolutionTelemetry.AfterResolution()
and so the variableNameResolutionTelemetry._currentLookups
remains forever incremented by one.The unmatched
BeforeResolution()
is called inDns.RunAsync()
here: https://github.com/dotnet/runtime/blob/9101b853a1f5194de3e7bc495454a57df0da300e/src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs#L652C16-L652C16The text was updated successfully, but these errors were encountered: