Commit Graph
2 Commits
Author SHA1 Message Date
Thomas DurieuxandClaude Opus 5.5 c9342e4b7d fix(logging): tell our cancellations from upstream resets, keep codes, catch cut bodies
- A request we destroy ourselves is ABORT_ERR, not ECONNRESET, and a
  fetch abort is ABORT_ERR rather than upstream_error.
- undici and DNS codes the schema lacks (UND_ERR_SOCKET, EAI_AGAIN, ...)
  fold into the closest kept code, so a failure always has one.
- node:http records are written when the body ends: a stream cut after
  its headers logs ECONNRESET with its status instead of a plain 200.
- Successful storage reads log at debug to keep info volume down.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:05:23 +00:00
Thomas DurieuxandClaude Opus 5.5 e571268e56 feat(logging): record each outbound call to GitHub and other external services
One info record per HTTP request to an external host (fetch and node:http),
with method, host, a fixed endpoint label, status or error code, duration and
the caller's requestId. Internal hops are skipped. Labels keep only literal
segments, so no owner, repository, path or identifier is logged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:57:28 +00:00