connect: log async errors and lame-duck mode through the connection logger

main

Commit

nodo1mo ago

Without an ErrorHandler, nats.go routes async errors — slow-consumer drops, permissions violations on missing server grants — to a default handler that prints to stderr, bypassing the service's structured logs. Every service that noticed (mirror-pipeline, at six Connect sites) attached its own handler via WithNATSOptions; make it the default posture instead. A lame-duck warn log likewise attributes a server-maintenance eviction to maintenance rather than a fault. Both handlers remain overridable via WithNATSOptions, which applies after the defaults.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01JkQyJPQExxz9SfcydyVVJj Entire-Checkpoint: 9617836013f6

Checkpoints

Documentation for Publish Helper and Growth Envelope

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1