Reproducible trace evidence · MIT + CC BY 4.0

Langfuse agent and tool tracing fixture

Inspect one deterministic agent task with retrieval, generations, tool retries, a terminal child error, source-side redaction, and an unavailable telemetry exporter. The bundle includes the code, tests, sanitized result, and diagram.

The evidence covers Python SDK 4.14.5 with one self-hosted Langfuse 3.205.0 instance. Recorded model and tool responses make the trace shape repeatable; they are not a provider or latency benchmark.

Files

Separate attempts

A timeout and its successful retry remain two tool observations, so recovery does not erase the original failure.

Bounded evidence

The runner removes inputs and outputs, copies metadata through an allowlist, and rejects synthetic identifiers and Langfuse keys before writing JSON.

Failure isolation

The unavailable-exporter case verifies that this fixture returns the same application result even when trace delivery fails.

Verified scope

Fifteen standard-library tests check parentage, retry shape, child and root levels, redaction, repeated runs, exporter isolation, the stored JSON, and the SVG. The remote evidence run covered happy, retry, and terminal scenarios.