dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

Handle the possibility that the agent hasn't started yet

Open BridgeAR opened this issue 7 months ago • 1 comments

Discussed in https://github.com/DataDog/dd-trace-js/discussions/5257

Originally posted by adamdavis40208 February 12, 2025 We're noticing that sometimes a new k8s node will get created, a node service placed on the cluster, and that pod spazzing out because the agent isn't available.

DATADOG TRACER DIAGNOSTIC - Agent Error: socket hang up
Received SIGTERM. Shutting down
SIGINT Received, stopping consumer

Sure, we just spin up another pod and try again, but it'd be nice if this could be retried a few times

BridgeAR avatar May 06 '25 13:05 BridgeAR

I think we should support a retry mechanism to gracefully handle cases like that for a startup time.

BridgeAR avatar May 06 '25 13:05 BridgeAR