Repository navigation
SpanHound v0.6.0 — one-command Python capture
SpanHound can now capture supported Python agents in one command, without manually setting OTLP exporter variables or adding tracing code to the agent.
In the agent's Python environment:
python -m pip install 'spanhound[auto]'
spanhound run --trace-dir ./traces -- python agent.pyThe runner starts a loopback receiver, configures OpenTelemetry export for the child process, and stops the receiver when the program exits. The optional package includes instrumentation for OpenAI, Anthropic, OpenAI Agents, HTTPX, and Requests. It reports when no spans were produced and preserves the agent's exit code.
Existing spanhound collect, JSONL, OTLP JSON, MCP, and desktop bundle flows remain available. Automatic instrumentation observes supported libraries; arbitrary local functions and approval decisions still require matching instrumentation.