View a markdown version of this page

Check your setup is ready for cost - Amazon Bedrock AgentCore

Check your setup is ready for cost

When you finish setup, you want a short checklist, so you can confirm cost will attribute correctly before you rely on it.

Checklist

  1. Telemetry source. Your telemetry is produced by ADOT (managed harness, Runtime, or self-hosted with ADOT). If you use a non-ADOT OpenTelemetry setup on self-hosted compute, confirm it signs its export to the X-Ray endpoint and produces the model-call span. See Choose your setup path.

  2. Transaction Search is on for the account and Region. This one-time per-account setup is needed for every setup; if you deploy with the AgentCore CLI, agentcore deploy can turn it on for you.

  3. Tracing is on for the agent runtime and for each AgentCore resource the agent uses (Gateway, Memory, Code Interpreter, Browser). On the managed harness this is automatic; on AgentCore Runtime and self-hosted compute, turn it on with the console’s Enable tracing. Without it, only the agent’s model-call spans reach aws/spans, so Runtime, Gateway, Memory, Code Interpreter, and Browser cost does not appear.

  4. Spans are reaching Observability. Invoke the agent, then open Observability in the AgentCore console and confirm the Spans view tab shows your agent’s spans (the view tabs are Overview, Sessions, Traces, and Spans). See See your first agent cost in the console.

  5. A cost figure appears. Open the agent in the cost view and confirm an estimated cost shows, not a dash. See See your first agent cost in the console.

  6. Identity is set (self-hosted). OTEL_RESOURCE_ATTRIBUTES sets cloud.resource_id (without :runtime/), service.name, and service.version.

  7. Attributes flow (self-hosted and plain-OTel). aws.client.cloud.resource_id, session.id, aws.tenant.id, and user.id are in baggage on every tool call and copied onto the agent’s own spans. See Pass the required session and agent attributes.

  8. Model-call span is correct. Each model call has a CLIENT span with gen_ai.operation.name, gen_ai.request.model, and input/output token counts.

  9. Metrics toggle on, if you intend to alarm. See Turn on cost metrics so you can alarm on them.

  10. Tags applied to the agent’s AgentCore Runtime resource, if you intend to filter cost by tag (not available for agents hosted outside AgentCore Runtime).

If a check fails