langfuse-strands
Integrate Langfuse observability with AWS Strands Agents for comprehensive tracing, monitoring, and debugging of AI agent applications. Use when building Strands agents that need production observability, when debugging agent behavior, when tracking costs/latency/token usage, or when setting up OpenTelemetry-based tracing for Strands.
npx skills add majiayu000/claude-skill-registry --skill langfuse-strands --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Langfuse + Strands Agents Observability Integrate Langfuse's open-source LLM observability platform with AWS Strands Agents using OpenTelemetry. ## Core Integration Pattern ```python import os import base64 from strands import Agent from strands.telemetry import StrandsTelemetry from strands.models.bedrock import BedrockModel # 1. Configure Langfuse credentials os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-..." os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-..." os.environ["LANGFUSE_BASE_URL"] = "https://cloud.langfuse.com" # EU default # os.environ["LANGFUSE_BASE_URL"] = "https://us.cloud.langfuse.com" # US region # 2. Configure OTEL exporter for Langfuse LANGFUSE_AUTH = base64.b64encode( f"{os.environ['LANGFUSE_PUBLIC_KEY']}:{os.environ['LANGFUSE_SECRET_KEY']}".encode() ).decode() os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = f"{os.environ['LANGFUSE_BASE_URL']}/api/public/otel" os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"Authorization=Basic {LANGFUSE_AUTH}" # 3. Initialize telemetry BEFORE creating agent strands_telemetry = StrandsTelemetry().setup_otlp_exporter() # 4. Create agent with trace attributes agent = Agent( model=BedrockModel(model_id="us.anthropic.claude-sonnet-4-20250514-v
- Core Integration Pattern
- Installation
- Key Configuration Reference
- Trace Attributes
- Model Providers
- Common Patterns
- Adding Custom Tools
- Combining with Langfuse SDK for Custom Spans
- Multi-Agent Orchestration
- Langfuse Dashboard Features
- Troubleshooting
- Additional Resources
pip install strands-agents[otel] langfuse
What does the langfuse-strands skill do?
Integrate Langfuse observability with AWS Strands Agents for comprehensive tracing, monitoring, and debugging of AI agent applications. Use when building Strands agents that need production observability, when debugging agent behavior, when tracking costs/latency/token usage, or when setting up OpenTelemetry-based tracing for Strands.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langfuse-strands --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
