Available for: Python only.
Installation
Usage
Initialize Zespan, then constructZespanHaystackTracer with the active Zespan client and pass it as your pipeline’s tracer.
Call
haystack.tracing.enable_tracing(tracer) once, before running any pipeline — it sets the tracer as a module-level global that Haystack uses for every subsequent pipeline run. Zespan then captures component execution, LLM calls, and pipeline latency.What gets captured
Token, model, and provider fields depend on Haystack’s own components populating tracing tags on the span. Not every component type surfaces these — check your component’s Haystack version and docs if fields show as empty.

