ISO8601 timestamp of when the event occurred.
Logical identifier for a user session or conversation.
Severity level of the event.
Trace context for correlating events.
OptionalproviderThe AI provider SDK that emitted the event.
OptionalmodelThe specific model ID used, if known (e.g., 'gpt-4-turbo').
OptionalrequestThe unique request ID returned by the provider's API.
OptionalserviceThe name of the service emitting the event.
OptionalenvThe deployment environment (e.g., 'production', 'staging').
OptionalregionThe cloud or geographical region.
Optional$extA bucket for vendor-specific or non-standard extensions.
The discriminated union type name for the event.
OptionalinputNumber of tokens in the input/prompt.
OptionaloutputNumber of tokens in the output/completion.
OptionalcostEstimated or reported cost for the tokens used.
Model token usage accounting (provider-reported or estimated).