mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-08-28 03:39:56 -04:00
d6fa58e5d4
A set-but-unreachable OTEL collector hung startup: NewTelemetryClient dialed with grpc.WithBlock() and no timeout on the deadline-free signal context, so the process blocked forever before it ever served. And a non-ErrNotConfigured init error from either observability client was log.Fatalf, killing the process. Both let an OPTIONAL integration take the whole app down. Bound the dial with a 10s timeout, and on init failure degrade to a no-op observer with a logged warning instead of exiting. Verified live: a bad OTEL_HOST that hung startup indefinitely now boots in ~14s with a warning and runs a full flow; a reachable collector still boots in ~4s with no warning. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>