mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-11-02 12:05:30 +00:00
The startup dial used grpc.WithBlock with a 10s timeout, so a set-but- unreachable collector stalled main() for up to 10s, and once that dial failed the client was nil forever — a collector that came up later never connected without a restart. Switch to grpc.NewClient (non-blocking): startup never stalls and gRPC re-establishes the connection in the background on its own. Also build all three exporters before any provider, so the exporter-error cleanup (closing the connection) happens before any batch/reader goroutine starts and can't leak one. Drops the deprecated WithBlock/WithReturnConnectionError. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>