Bitfab provides automatic tracing for popular AI frameworks. Instead of manually wrapping every function withDocumentation Index
Fetch the complete documentation index at: https://docs.bitfab.ai/llms.txt
Use this file to discover all available pages before exploring further.
withSpan or @span, use a framework-specific handler that hooks into the framework’s execution lifecycle and captures spans automatically.
Framework Support
| Framework | TypeScript | Python | Ruby | Go |
|---|---|---|---|---|
| LangGraph / LangChain | ✅ | ✅ | — | — |
| OpenAI Agents SDK | ✅ | ✅ | — | — |
| BAML | ✅ | ✅ | — | — |
| Claude Agent SDK | ✅ | ✅ | — | — |
Choose a Framework
LangGraph / LangChain
Callback handler that captures graph nodes, LLM calls, tool invocations, and retriever queries as traced spans.
OpenAI Agents SDK
Trace processor that captures agent runs, tool calls, and handoffs from the OpenAI Agents SDK.
BAML
Auto-capture rendered prompts and LLM metadata (model, tokens, duration) from BAML function calls.
Claude Agent SDK
Handler that captures LLM turns, tool invocations, and subagent execution from the Claude Agent SDK.
How It Works
Each framework handler integrates with Bitfab’s tracing pipeline:- Create a handler via the Bitfab client (e.g.,
bitfab.getLangGraphCallbackHandler("my-agent")) - Pass the handler to the framework (as a callback, processor, or hook)
- Spans are created automatically for each execution step (LLM calls, tool invocations, etc.)
- Nest with core tracing — framework spans appear as children if wrapped in a
withSpanor@spancontext