Reserved Session Fields
Token and cost tracking
HoneyHive automatically rolls up token counts and cost from everymodel event in a session.
Token counts are extracted from the LLM provider’s response (e.g. OpenAI’s
usage field). Cost is calculated server-side using up-to-date pricing tables for each model. If a session contains multiple LLM calls (e.g. a chain or agent loop), all calls are summed at the session level.
You can use these fields to filter, alert, and chart in the HoneyHive dashboard - for example, flagging sessions where cost > 0.10 or total_tokens > 10000.
Duration Calculation
Duration is calculated asmax(end_time) - min(start_time) across all events in the session. This works for both synchronous and asynchronous execution:

- Synchronous: Events chain sequentially (Session Start → Event 1 → Event 2)
- Asynchronous: Events branch in parallel from Session Start
duration on the session, that value is preserved.
Related
Alerts
Set up alerts based on session metrics
Charts
Visualize session metrics over time

