A run's trace wasn't sent
warning: Axle couldn't send the run's trace to http://localhost:4318/v1/traces: Connection refusedhint: Check OTEL_EXPORTER_OTLP_ENDPOINT, the headers in OTEL_EXPORTER_OTLP_HEADERS, and that the collector is running. The tasks' results aren't affected.Why it happens
Section titled “Why it happens”OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is set, so Axle sends a trace of each run there once it ends, and the collector couldn’t be reached, didn’t answer within the timeout, or answered with an error, such as 401 for a missing API key or 404 for a wrong path.
The run itself is unaffected: its tasks ran, their results are cached, and Axle’s exit code is theirs.
How to fix it
Section titled “How to fix it”- Check that the collector is running and reachable from where Axle runs, on its OTLP HTTP port, usually
4318. OTEL_EXPORTER_OTLP_ENDPOINTis the collector’s base address: Axle adds/v1/traces. To give the full address of the traces endpoint instead, useOTEL_EXPORTER_OTLP_TRACES_ENDPOINT.- A hosted backend usually needs an API key, in
OTEL_EXPORTER_OTLP_HEADERSasname=valuepairs separated by commas, such asx-api-key=…. - A slow network may need a longer
OTEL_EXPORTER_OTLP_TIMEOUT, in milliseconds; the default is 10 seconds.
To stop sending traces, unset the endpoint or set OTEL_SDK_DISABLED=true.