LLM Token Logging: Measure Usage, Latency, and Cost
Build an interpretable record of LLM usage, timing, retries, and cost estimates while preserving incomplete accounting states.
Understand what an LLM usage total represents, where it came from, and how it relates to the request that triggered it.
Start with the measurement guide below, then use the Token and LLM topic pages for field selection. Keep estimates separate from provider-reported usage, preserve attempt boundaries, and avoid treating missing usage as zero.
Build an interpretable record of LLM usage, timing, retries, and cost estimates while preserving incomplete accounting states.