Haystack logo + P
Integration

Observe, evaluate, and improve your Haystack agents

Capture every Haystack Pipeline as the directed graph it actually is — each Component's run as its own span, connected the same way Haystack connects component outputs to inputs.

What Prefactor records from Haystack

Pipeline component runs (following the graph's output-to-input connections)retrievalsagent tool callsLLM calls

Haystack + Prefactor

How the Haystack integration works

See setup + the install snippet →

Haystack integration FAQ

Do I need a dedicated package for Haystack?

You can instrument Haystack today with the framework-agnostic prefactor-core SDK; a dedicated package can be added on request.

What does Prefactor capture from Haystack?

Prefactor records pipeline component runs, retrievals, agent tool calls and LLM calls as structured, timestamped spans — so every Haystack run is captured as trace data you can reconstruct, search and export end to end.

Does Prefactor add latency or change how Haystack runs?

No. Observability capture is designed to stay off your agent's critical path, so it doesn't alter your Haystack logic or your users' responses. The only part that acts inline is the optional runtime guardrails you enable per agent — by design, so a high-risk or low-confidence action can be held for human approval before it executes.

Can I evaluate agents built with Haystack and catch regressions?

Yes. Once runs are captured, eval suites score quality and groundedness on real traffic, drift detection flags behaviour changes after deployment, and versioned eval history catches regressions before they ship — the observe → evaluate → improve loop applied to your Haystack agents.

Related guides

See it on your Haystack agents

Book a 15-minute setup and our team gets you tracing in production.