Skip to content

A run's trace wasn't sent

warning: Axle couldn't send the run's trace to http://localhost:4318/v1/traces: Connection refused
hint: Check OTEL_EXPORTER_OTLP_ENDPOINT, the headers in OTEL_EXPORTER_OTLP_HEADERS, and that the collector is running. The tasks' results aren't affected.

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.

  • Check that the collector is running and reachable from where Axle runs, on its OTLP HTTP port, usually 4318.
  • OTEL_EXPORTER_OTLP_ENDPOINT is the collector’s base address: Axle adds /v1/traces. To give the full address of the traces endpoint instead, use OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.
  • A hosted backend usually needs an API key, in OTEL_EXPORTER_OTLP_HEADERS as name=value pairs separated by commas, such as x-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.