About Amazon Bedrock AgentCore Monitoring

Trace agents on Amazon Bedrock AgentCore end to end, from the agent's own model and tool calls through AgentCore Gateway, Memory, and Lambda tool targets.

Amazon Bedrock AgentCore  runs AI agents on AWS. Its Runtime hosts the agent, its Gateway exposes tools to the agent over the Model Context Protocol (MCP), and its Memory stores conversation history and what the agent learns about each user.

Dash0 shows a request to an AgentCore agent as one trace. The trace contains the agent's model calls and tool calls, plus the spans that AWS records inside Gateway, Memory, and the Lambda functions behind your tools. You see where an agent spends its time, which tool call failed, and whether the delay came from the model, the Gateway, or the tool.

Dash0 trace of one AgentCore agent invocation with agent model and tool call spans, AgentCore Gateway spans, and Lambda tool spans, including a failed get_weather tool call

What Dash0 Collects

Telemetry for AgentCore reaches Dash0 through four paths. Each path is independent, so you can start with one and add the others later.

SignalSourceHow it reaches Dash0
Agent spans, logs, and metricsYour agent code, through the OpenTelemetry SDKOTLP, directly from the agent runtime to Dash0
Gateway, Memory, and Lambda spansAWS X-Ray, stored by CloudWatch Transaction Search in the aws/spans log groupA CloudWatch Logs subscription to an Amazon Data Firehose stream
Gateway, Memory, and Lambda logsThe Gateway and Memory application logs and the Lambda log groups in CloudWatch LogsA CloudWatch Logs subscription to an Amazon Data Firehose stream
AgentCore metricsThe AWS/Bedrock-AgentCore CloudWatch namespaceScraped by the Dash0 AWS integration
  • Agent spans: One span per agent invocation, model call (chat), and tool call (execute_tool), following the OpenTelemetry semantic conventions for generative AI . Agent frameworks such as Strands Agents  emit these spans out of the box.
  • Gateway spans: Inbound authorization, tool listing, routing, and one AgentCore.Gateway.InvokeTool span per tool call, named after the tool.
  • Memory spans: One span per Memory API call, such as RetrieveMemoryRecords, CreateEvent, and ListEvents.
  • Lambda spans: The Lambda service and execution environment spans of each tool target, when the function has active tracing turned on.
  • Gateway, Memory, and Lambda logs: One log per Gateway request, Memory's logs for its memory extraction, and your tool function's logs. Gateway logs carry the trace ID of the request, so they show up in the same trace as the spans.
  • AgentCore metrics: Invocations, latency, errors, and sessions for Runtime, Gateway, and Memory. The Amazon Bedrock AgentCore dashboard from the Dash0 Integration Hub shows them per agent, tool, and Memory operation.

Amazon Bedrock AgentCore dashboard in Dash0 with agent invocations, latency, and sessions, and Gateway tool calls, latency, and errors

How the Trace Fits Together

The agent creates the trace and passes its trace context to Gateway and Memory in the traceparent and X-Amzn-Trace-Id request headers. AgentCore records its own spans under the same trace ID, and only for requests that carry a sampled trace context. Without these headers, AgentCore records no Gateway or Memory spans for the request.

AWS writes these spans to the aws/spans CloudWatch log group. A subscription filter forwards them to Dash0, where they join the agent's spans in a single trace.

Next Steps

Last updated: