Amazon Bedrock AgentCore Observability with Langfuse
AWS•How-to••by Richa Gupta, Ishan Singh, Marc Klingen, Madhu Samhitha Vangara and Yanyan Zhang•AWS Artificial Intelligence Blog
In this post, we explain how to integrate Langfuse observability with Amazon Bedrock AgentCore to gain deep visibility into an AI agent’s performance, debug issues faster, and optimize costs. We walk through a complete implementation using Strands agents deployed on AgentCore Runtime followed by step-by-step code examples.
AgentCore agents can send OpenTelemetry traces to Langfuse, with AgentCore's default observability turned off via disable_otel, to see per-step latency, token use and cost.
Who it is for
Teams running Strands agents on AgentCore Runtime that need tracing, debugging and cost visibility for LLM calls.
Key points
Requires disable_otel=True at deployment and Langfuse OTEL endpoint and auth header set as environment variables.
Example uses Anthropic Claude 3.7 Sonnet through Amazon Bedrock; Bedrock model access in us-west-2 is a prerequisite.
Langfuse can be self-hosted in your own AWS account using a Terraform module.
AI:Both get tracing and evaluation for agents by sending OpenTelemetry traces from an external setup, though Microsoft's route is a built-in platform feature rather than a third-party tool.
AI:Bedrock adds OpenAI GPT-6 Sol and GPT-6 Luna and Anthropic Claude Opus 5.5; Strands harness releases under Apache 2.0; SageMaker HyperPod Inference Gateway routes LLM traffic on GPU-aware signals.
AI:AgentCore agents can cut per-turn token use by offloading large JSON to S3, paging tool results on demand, and compacting dictionary outputs into descriptors.
AI:Bayer Crop Science's Agentic Decision Engine uses Bedrock AgentCore to let staff ask natural language questions about its ML workflow platform, with 22 specialist agents and about 80 percent of questions resolved without an engineer, per AWS.