Cost tracing
Know what every pricing decision cost you.
Cost Tracing shows the input units, output units, multiplier, and final cost for every compute call, computed by the same helper the router uses, so the dashboard, the marketing site, and the invoice all match.

What you can do
- See cost per call, per function, per tenant, and per route in one view.
- Drill from any total down to the individual usage event that caused it.
- Filter by function, time range, customer, or routing strategy.
- Export usage events to your warehouse via webhook or the Usage API.
- Reconcile against invoices, the same formula produced both numbers.
One trace, end to end
metering.input_units = 120 metering.output_units = 64 function.cost_per_unit = $0.005 function.cost_multiplier = 1.5× ───────────────────────────────────────── metering.cost = $0.002340
Computed live with computeMeteringCost(input, output, cost_per_unit, multiplier), the same formula the server meters with. Factors: METERING_INPUT_FACTOR = 0.001, METERING_OUTPUT_FACTOR = 0.003.
Recent changes
All Compute notes- Improved
Release v0.11.0
v0.11.0 makes every price say what it means and what kind of claim it is, lets a buyer state the most it will pay, asks for a fresh sign-in before money decisions, and fixes routing, price bounds, UCP quotes and server errors.
- Improved
Cost and margin inputs are checked, never dropped
Cost and margin inputs that cannot be read are refused by name, the explanation starts with the price you get, and a batch keeps pricing past an item that fails validation.
- Fixed
Automatic routing moves on when a function fails
When the function cheapest or fastest routing picks fails while running, Last Price now tries the next function that can answer instead of returning an error.
- Fixed
Price bounds hold wherever you send them
A min_price or max_price sent inside context, or to the keyless compute_price tool, now holds the price the same way constraints does.
- Fixed
UCP quotes price catalog carts on their own
A UCP quote for items in your catalog now takes each line's price from the catalog, as checkout does, instead of asking for a current price.
Ready to try it?
Spin up a free playground tenant in under a minute. No credit card.