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¶
otel checkprints OK; the run ends withOTel: exported N span(s).- Open http://localhost:16686, pick the service
credencestack, Find Traces. - Open
credencestack scenario PAY-001 #0: theinvoke_agentspan, itsexecute_toolchildren and thecredencestack gradespan. - The scenario span's tags include
credencestack.result=fail; its logs (events) includecredencestack.finding. - In
report.html, the trace IDs in the compliance matrix link to the same traces.
Useful views¶
- Search by tag:
credencestack.result=fail, orcredencestack.findings.max_severity=critical. - RES-00x scenarios show
credencestack.faultandcredencestack.control_signalevents, and tool spans in error witherror.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.shstarts 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/.