Tracing every token,
cheaply.
How we store a full trace of every run and still keep the bill smaller than the logs it replaced.

Owen Pratt
Staff Engineer
9 min read

In short
Every OVTIVA run keeps a full trace: each step, prompt, model answer, token count and cost. Storing all of it sounds expensive. It is cheaper than the logs it replaced.
Store less, keep everything
Most of a trace repeats. The same prompt template, the same system message, the same tool list. We store each unique piece once and keep a pointer in every run that uses it.
Hot, warm and cold
The last seven days stay in fast storage for the trace view.
Up to 90 days sit in compressed columns, still searchable.
After that, traces move to object storage and load on demand.
What it costs
On average a trace costs a fraction of a cent to keep for a year. The bigger saving is time: when something goes wrong, the answer is one click away instead of a log search.
Found this useful?

Written by
Owen Pratt
Owen looks after the router and the trace store. He likes boring infrastructure, graphs that go down and on-call weeks where nothing happens.
Keep reading
