IntegrationsOverview

Integrations

TraceCraft integrates with popular LLM frameworks and cloud platforms.

No custom integration code required

Point any OTLP-instrumented app at TraceCraft and you’re done:

tracecraft serve --tui
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python your_app.py

Works with OpenLLMetry, LangChain, LlamaIndex, DSPy, PydanticAI, and any standard OpenTelemetry SDK — no TraceCraft-specific code needed.

Framework Integrations

Auto-Instrumentation

Cloud Platforms

Quick Reference

LangChain

The simplest path requires no TraceCraft-specific code — just set the OTLP endpoint:

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python your_langchain_app.py

Or use auto-instrumentation with one line:

import tracecraft
tracecraft.init(auto_instrument=True)   # patches LangChain automatically

For richer span context using the native adapter, see LangChain Integration.

LlamaIndex

Set the OTLP endpoint if LlamaIndex is already emitting OTel traces:

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python your_llamaindex_app.py

Or enable auto-instrumentation:

import tracecraft
tracecraft.init(auto_instrument=True)   # patches LlamaIndex automatically

For the native span handler, see LlamaIndex Integration.

PydanticAI

Set the OTLP endpoint for any PydanticAI app already emitting OTel traces:

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python your_pydanticai_app.py

Or use auto-instrumentation:

import tracecraft
tracecraft.init(auto_instrument=True)

For the native span processor, see PydanticAI Integration.

Claude SDK

Set the OTLP endpoint for Claude SDK apps already emitting OTel traces:

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python your_claude_app.py

Or use auto-instrumentation:

import tracecraft
tracecraft.init(auto_instrument=True)

For the full adapter with tool-level tracing, see Claude SDK Integration.

Choosing an Integration

FrameworkUse WhenInstallation
LangChainBuilding with LCEL chainstracecraft[langchain]
LlamaIndexUsing query engines or RAGtracecraft[llamaindex]
PydanticAIType-safe agent developmenttracecraft[pydantic-ai]
Claude SDKClaude-powered agentstracecraft[claude-sdk]
AutoUsing OpenAI/Anthropic directlytracecraft[auto]
OTel ReceiverReceiving OTLP tracestracecraft[receiver]
CustomRolling your ownBase package

Next Steps

Explore integration guides:

  1. LangChain Integration
  2. LlamaIndex Integration
  3. PydanticAI Integration
  4. Claude SDK Integration
  5. Auto-Instrumentation
  6. OpenTelemetry Receiver
  7. Cloud Platforms