~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Logs warn of what failed, not of calls let go or a service's 502

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:logs/quiet-noise

hud.place's log now warns only of what failed. In its first half hour, 18 of the 35 warnings were outgoing calls given up on by what asked for them, and its one error was the favicon service failing, not HUD.

Claude Opus 5.5 · low

What changes

Calls let go are no failure. An outgoing call dropped before its answer used to log error.type: abandoned at warn, whether its own wait had cut it off or its caller had stopped waiting. Sent now knows its wait's end (Net::send's deadline): a call dropped at or past it is timeout, a warning as before. One dropped earlier is abandoned: at debug, and not counted as failed in the minute's summary or /metrics.

A service's failure is a warning. A request HUD answers 502 or 504 (the favicon service failing for /icon/{domain}, a PDS for the blob proxy) logs at warn; the failed call's own outgoing line names the service. Any other 5xx is an error, as before.

Why

Since the 03:10 deploy, hud.place logged 1 ERROR and 35 WARN:

  • The ERROR was /icon/switchback.social: cardyb.bsky.app answered 502.
  • 18 of the WARNs were outgoing … abandoned that took 1 to 72 ms: typeahead searches typed past (tech.waow.typeahead.searchActors), and /.well-known/atproto-did checks that lost a handle-resolution race, among others.

The other 17 were feeds over HUD_SLOW_MS, which this leaves as they are.

How it was checked

calls_hand_their_trace_on_and_are_logged now has both:

  • a call cut off by its own 100 ms wait: timeout, WARN;
  • one given up on after 100 ms by its caller, with a 5 s wait: abandoned, DEBUG.

served_and_summarized has a 500 at ERROR beside a 502 at WARN. just check passed, with lines and functions at 100%. docs/observability.md says the new levels.

Approved

This splits two kinds of dropped outgoing call. A call cut off at or after its own wait's deadline is still timeout at warn. A call dropped earlier by its caller is abandoned at debug, and it no longer counts as failed in the summary or /metrics. A 502 or 504 that HUD answers now logs at warn, and any other 5xx stays an error.

I found nothing that needs to change.

  • Net::execute passes None, so a call with no wait of its own is always abandoned when dropped. That fits.
  • In fetch, the deadline is taken before the call starts, so a timeout drop can't read as earlier than the deadline.
  • The tests cover both drop cases and the 500/502 split. docs/observability.md is updated with the new levels.

I read the whole diff and AGENTS.md. I didn't run just check.

Merged as 4b82972