Skip to content

Jaeger

Jaeger runs locally in one container and needs no account, which makes it the quickest way to look at CredenceStack's traces. The quickstart uses it.

Prerequisites

  • pip install "credencestack[otel]"
  • Docker.

What you need

Nothing but a running Jaeger. The all-in-one image receives OTLP on 4317 (gRPC) and 4318 (HTTP) and serves its UI on 16686:

docker run -d --rm --name jaeger -e COLLECTOR_OTLP_ENABLED=true \
  -p 16686:16686 -p 4317:4317 -p 4318:4318 jaegertracing/all-in-one:1.62.0

The image tag is an example; use a current Jaeger release (Jaeger 2 ships as a different image: check Jaeger's documentation).

Configure

export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318

Run

export CREDENCESTACK_OTEL_TRACE_URL_TEMPLATE="http://localhost:16686/trace/{trace_id}"
credencestack otel check
credencestack run -p payments -p resilience --agent credencestack.agents:scripted_naive --otel

Verify

  1. otel check prints OK; the run ends with OTel: exported N span(s).
  2. Open http://localhost:16686, pick the service credencestack, Find Traces.
  3. Open credencestack scenario PAY-001 #0: the invoke_agent span, its execute_tool children and the credencestack grade span.
  4. The scenario span's tags include credencestack.result=fail; its logs (events) include credencestack.finding.
  5. In report.html, the trace IDs in the compliance matrix link to the same traces.

Useful views

  • Search by tag: credencestack.result=fail, or credencestack.findings.max_severity=critical.
  • RES-00x scenarios show credencestack.fault and credencestack.control_signal events, and tool spans in error with error.type=fault.<kind>.

Filter generated scenarios and difficulty

Scenario spans of generated scenarios carry credencestack.forge.* attributes (reference). Jaeger's tag search matches exact values only, so filter one level at a time:

credencestack.forge.generated=true credencestack.forge.level=5 credencestack.result=fail

Compare the failure rate by level with the fixed scenarios (credencestack.forge.generated absent) to see the brittleness of an agent in your own traces.

Limitations

  • The all-in-one image keeps traces in memory: they are gone when the container stops.
  • scripts/otel_smoke/jaeger.sh starts Jaeger, runs the demo and prints where to look.

Last verified

2026-11-28: the Jaeger commands are standard all-in-one usage; not run here (no Docker in the build environment). Docs: https://www.jaegertracing.io/docs/.