- Who caused this cost?
- Which part of the agent caused it?
Customer identifiers
Usecustomer_id for the account, workspace, tenant, or end customer that caused the work.
Good values:
cust_abc123workspace_789acme-corp
- Email addresses.
- Phone numbers.
- Raw names when an opaque ID is available.
- Any prompt or message content.
Step names
Usestep_name for the logical agent step that created spend.
Good values:
retrieve_contextevaluatesummarizedraft_replyspeak_answer
Why attribution matters
Provider dashboards show a vendor bill. AgentMeter shows the customer and product path behind the bill.| Question | What to filter by |
|---|---|
| Which customers are expensive? | customer_id |
| Which workflow is expensive? | step_name |
| Which model causes margin drift? | Provider and model |
| Which non-LLM source changed margin? | Metric and cost source |
Minimum useful event
An event should include:customer_id.step_name.- Provider or metric.
- Usage counts such as tokens, requests, seconds, characters, or executions.
- Status and latency.
cost_usd on the server.