cyberneticlibrary

Debug AgentCore sessions via CloudWatch Logs

agentcore-investigationskillsetup L39,231
awslabs/mcp
What it does

Query CloudWatch Logs Insights for AgentCore trace resolution

Best for

Debugging AgentCore agent sessions, tracing tool calls, or analyzing latency

Inputs
  • · sessionId or traceId
Outputs
  • · Timeline, span details, errors, tool calls, latency analysis
Requires
  • · CloudWatch Logs MCP
  • · Application Signals MCP
Preconditions
  • · CloudWatch log groups for AgentCore runtime
  • · Logs Insights access
Failure modes
  • · Session ID not found
  • · OTEL instrumentation scope mismatch
  • · Log group not discovered
Trust signals
  • · OTEL span schema documented
  • · Noise filtering heuristics
  • · 6-query investigation template