Skip to main content

usage_key

Function usage_key 

Source
pub fn usage_key(agent: &str, session_id: Option<&str>, turn_id: &str) -> String
Expand description

Key under which a per-request usage figure is counted exactly once.

Both the adapter (when parsing) and the ingester (when rebuilding state from an existing store) must derive the same string, which is what makes usage attribution survive an interrupted run.