mcp
mcp copied to clipboard
[Remote] Consider using AddHttpClientLatencyTelemetry for advanced troubleshooting
Describe the bug
Low-pri but could be great for the remote case: https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-latency-extensions?tabs=dotnet-cli
TL;DR: outbound HTTP requests can get stuck or slow in a few different ways. There's a lot of song-and-dance with the TCP connection, the HTTP handshaking, HTTP headers/bodies/etc. I (@vukelich) have gone so far as to needing to implement this entire thing myself to determine why some network traffic to ARM was disappearing from my App Service because I could see the request in my outgoing telemetry but ARM telemetry never saw the incoming request.