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 gen_ai_usage_total_cost data into the span
map_ai_measurements_to_data
Maps AI-related measurements (legacy) to span data.