Skip to content

prober: a DNS stall can never be classified dns_timeout — classify by phase with httptrace #1252

Closed

Description

@bpalermo

Found investigating #1240.

classifyErr in prober/internal/prober/prober.go expects a resolution stall to surface as a DNS error. It cannot on this path: Go's Transport.getConn dials on context.WithoutCancel(ctx) and returns context.Cause of the request context when the deadline fires, so a stalled lookup comes back as plain context deadline exceeded and is counted as timeout. So 'dns_* is zero' does not mean DNS was healthy, and a timeout does not say which phase ran out — #1240 needed a source-port-ordering inference over access logs to find out.

Fix: attach an httptrace.ClientTrace (DNSStart/DNSDone, ConnectStart/ConnectDone, GotConn, WroteRequest, GotFirstResponseByte), classify by the phase the deadline interrupted, and put per-phase milliseconds in the AETHER_PROBE_FAIL line. Prober chart bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions