Skip to content

Add comprehensive agent framework integration guides#2021

Draft
strawgate wants to merge 3 commits into
mainfrom
claude/agent-frameworks-logfire-docs-sgi9cc
Draft

Add comprehensive agent framework integration guides#2021
strawgate wants to merge 3 commits into
mainfrom
claude/agent-frameworks-logfire-docs-sgi9cc

Conversation

@strawgate

@strawgate strawgate commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This PR adds 20 new integration documentation pages covering popular AI agent frameworks and LLM platforms across multiple languages (Python, TypeScript, Go, Rust, .NET).

Summary

Adds extensive documentation for integrating Pydantic Logfire with agent frameworks and LLM platforms. Each guide includes:

  • Framework overview and integration approach
  • Installation instructions
  • Runnable code examples
  • Configuration details for sending telemetry to Logfire

New Integration Guides

Python LLM/Agent Frameworks:

  • CrewAI — multi-agent orchestration via OpenInference
  • Google ADK — native OTel instrumentation
  • Semantic Kernel (Python) — native OTel with diagnostics env var
  • Instructor — structured outputs with validation tracing
  • LangGraph — stateful graphs via LangSmith OTel bridge
  • AutoGen — multi-agent via OpenInference
  • Haystack — pipeline components via OpenInference
  • Agno — multi-agent systems via OpenInference
  • smolagents — code-thinking agents via OpenInference
  • Strands Agents — native OTel tracer provider
  • Letta (formerly MemGPT) — OTLP/gRPC via OpenTelemetry Collector

TypeScript/JavaScript Agent Frameworks:

  • OpenAI Agents SDK — custom TracingProcessor bridge to OTel
  • Mastra — observability with OTel exporter
  • LlamaIndex.TS — OpenLLMetry/Traceloop OTLP integration
  • LangChain.js / LangGraph.js — LangSmith OTel exporter
  • Vercel AI SDK — built-in OTel support
  • VoltAgent — OTel span processors

Go Agent Frameworks:

  • Eino — custom callbacks handler with OTLP exporter
  • Genkit (Go) — global OTel TracerProvider

Rust Agent Frameworks:

  • Rig — Logfire Rust SDK or standard OTel OTLP exporter

.NET Agent Frameworks:

  • Semantic Kernel (.NET) — native OTel with OTLP exporter
  • Microsoft Agent Framework (.NET) — GenAI semantic conventions

Index Page:

  • New docs/integrations/agent-frameworks/index.md — overview of three integration patterns (native OTel, instrumentors, OTLP over wire)

Documentation Updates

  • Updated docs/nav.json to include all new integration links organized under "Agent Frameworks" and "LLMs" sections
  • Updated docs/integrations/index.md to reference agent frameworks
  • Updated docs/languages.md to mention agent framework integrations

Integration Patterns Documented

  1. Native OpenTelemetry — frameworks that emit OTel spans through global tracer provider
  2. Instrumentors — OpenInference/OpenLLMetry packages that add spans automatically
  3. OTLP over the wire — frameworks requiring explicit OTLP exporter configuration

Each guide includes practical code examples, environment variable setup, and notes on framework-specific configuration.

https://claude.ai/code/session_0176U6NDhFtgGhxKLykUHQzU

Review in cubic

claude added 3 commits June 12, 2026 05:50
… Logfire

Document how to send telemetry to Logfire and use managed prompts from 22
agent frameworks across five languages, each with a runnable sample agent.

Python (docs/integrations/llms/): CrewAI, AutoGen, Google ADK, smolagents,
Strands Agents, Agno, Haystack, LangGraph, Instructor, Semantic Kernel, Letta.

JS/TS, Go, Rust, .NET (new docs/integrations/agent-frameworks/): Vercel AI SDK,
Mastra, LangChain.js, OpenAI Agents SDK (TS), VoltAgent, LlamaIndex.TS,
Genkit (Go), Eino (Go), Rig (Rust), Semantic Kernel (.NET), and Microsoft
Agent Framework (.NET), plus an Agent Frameworks overview hub.

Also update the integrations index/table, nav.json, and the Languages page.
Two python blocks inside admonitions in google-adk.md lacked a skip tag, so
pytest-examples executed them: one imported an uninstalled package and the
other mutated global OTEL_* env vars for the whole test session, which crashed
the logfire pytest plugin during teardown. Tag both with skip="true".
Align Vercel AI SDK and LlamaIndex.TS managed-prompts snippets with the
documented `import * as logfire from '@pydantic/logfire-node'` form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants