Module ai

Source
Expand description

AI cost calculation.

Functions§

enrich_ai_span_data
Extract the ai data from all of an event’s spans
extract_ai_data
Extract the additional data into the span
is_ai_span
Returns true if the span is an AI span. AI spans are spans with op starting with “ai.” (legacy) or “gen_ai.” (new).
map_ai_measurements_to_data
Maps AI-related measurements (legacy) to span data.