langfuse-strands
Installation
SKILL.md
Langfuse + Strands Agents Observability
Integrate Langfuse's open-source LLM observability platform with AWS Strands Agents using OpenTelemetry.
Core Integration Pattern
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