Skip to content

OpenTelemetry troubleshooting

Start with credencestack otel check: it sends one test span with the same settings as --otel and explains a failure in plain English. The run's last line also says what happened: OTel: exported N span(s) or OTel: export failed (reason). A failed export never fails the run.

401 or 403

The platform rejected the credentials.

  • 401 unauthorized: the key is wrong or missing, or the header has the wrong format. Check the header name (each platform guide gives it) and, for Basic auth, that the value is Basic <base64(user:secret)> (in OTEL_EXPORTER_OTLP_HEADERS, write the space as %20).
  • 403 forbidden: the key is valid but may not write traces to this project, region or dataset. Check the key's scopes and the region in the endpoint.

404

The path is wrong. With OTLP/HTTP, the traces URL normally ends in /v1/traces:

  • OTEL_EXPORTER_OTLP_ENDPOINT and otel.endpoint take the base URL; /v1/traces is appended.
  • OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is used as given, so it must include /v1/traces (or the platform's own traces path).

Setting the full traces URL in OTEL_EXPORTER_OTLP_ENDPOINT gives .../v1/traces/v1/traces and a 404.

gRPC not supported

Some platforms accept OTLP over HTTP only (Langfuse, for example). With grpc you get "unsupported protocol" or "endpoint unreachable". Use (OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf). OTLP/JSON (http/json) is not available: the OpenTelemetry Python SDK has no exporter for it.

TLS errors

"TLS error" means the scheme or the certificate is wrong: https:// for a TLS endpoint, http:// for a plain local one (a local Collector or Jaeger). For gRPC to a local Collector without TLS, use an http:// endpoint.

Spans do not show up

  • Telemetry is off. OTEL_EXPORTER_OTLP_* alone does not turn it on; add --otel or CREDENCESTACK_OTEL_ENABLED=1. CredenceStack prints a hint when it sees the variables without the flag.
  • Sampling. OTEL_TRACES_SAMPLER (for example traceidratio with a small OTEL_TRACES_SAMPLER_ARG) drops traces before export. Unset it, or use parentbased_always_on.
  • Time range. Spans use wall-clock time: look at "the last 15 minutes", not the simulated dates in the evidence report.
  • Service name. Look for the service credencestack, or the name you set with OTEL_SERVICE_NAME or OTEL_SERVICE_NAME.
  • Granularity. With the default, each scenario epoch is its own trace; the run trace only links to them.
  • The export was dropped. If the run's last line says export failed, fix that first: after two failed batches CredenceStack stops trying for the rest of the run.

Duplicate tool spans

If your framework emits its own tool spans, each tool call appears twice: the framework's span (what the agent thought it called) and CredenceStack's (credencestack.source=harness, what the simulated environment received). Filter on credencestack.source, or run with CREDENCESTACK_OTEL_AGENT_SPANS off to leave the framework's spans out of CredenceStack's traces.

No prompts, arguments or results

Content capture is off by default. Add --otel-content to export the content of public scenarios. Confidential scenarios never export content; their spans say credencestack.content_redacted=true.

"the [otel] extra is not installed"

pip install "credencestack[otel]"

Where to look, by platform

Platform Look in
Langfuse The project's traces list
Datadog LLM Observability traces, or APM traces when sent through the Agent
Traceloop The traces view
Splunk APM, service credencestack
Grafana Explore, Tempo data source
Honeycomb The dataset named after the service
New Relic APM and services, or distributed tracing
Phoenix The project's traces
Elastic Observability, APM services
Jaeger Search, service credencestack

The exact menu names differ between platform versions; each guide's "check against the vendor's docs" notes say which ones are not verified.