

# 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
<a name="_checklist"></a>

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](acv-choose-your-setup-path.md).

1.  **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.

1.  **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.

1.  **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](acv-see-your-first-agent-cost.md).

1.  **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](acv-see-your-first-agent-cost.md).

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

1.  **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](acv-pass-required-attributes.md).

1.  **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.

1.  **Metrics toggle on**, if you intend to alarm. See [Turn on cost metrics so you can alarm on them](acv-turn-on-cost-metrics.md).

1.  **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
<a name="_if_a_check_fails"></a>
+ A cost shows a dash → [A cost shows a dash instead of a figure](acv-cost-shows-a-dash.md).
+ A session total looks short → [A session cost looks too low or incomplete](acv-cost-shows-a-dash.md#acv-session-cost-too-low).
+ Cost lands on the wrong agent → [Cost is attributed to the wrong agent](acv-cost-shows-a-dash.md#acv-cost-attributed-to-wrong-agent).