maple-agent-tracing-haystack - Trace Haystack Agents with Maple
Installs a Haystack tracer that exports OpenTelemetry GenAI attributes to Maple, including sessions, transcripts, model usage, costs, and tool failures.
Tags
Updated: 2026-10-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Detect Haystack versions
- Find agent execution points
- Reuse existing OTel providers
- Configure Maple OTLP export
- Install tracing dependencies
- Write a custom tracer
- Group runs by conversation
- Record model usage and cost
- Mark failed tool calls
Inputs
- Haystack application repository
- Agent or pipeline execution points
- Conversation or thread ID
- Maple ingestion key
- Maple ingest region
- Repository secret convention
Outputs
- maple_haystack.py tracer file
- Configured OpenTelemetry export
- Maple Agent Sessions
- Session transcripts and usage telemetry
- Tool failure span statuses
- Configuration warning messages
Requirements
- Haystack AI >=3.0
- Python OpenTelemetry SDK
- OTLP HTTP exporter
- Package installation permission
- Application code modification permission
- Network access to Maple ingest endpoints
