mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-04 01:48:57 +00:00
* feat(traces): render curated SQL examples from shared files * fix(traces): filter trace-summary example after grouping so boundary-spanning traces keep full totals Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(traces): order failed-spans example by timestamp so newest failures survive the limit Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
8 lines
260 B
SQL
8 lines
260 B
SQL
SELECT
|
|
request_id,
|
|
JSONType(metadata, 'labels', 'priority') AS type,
|
|
JSONExtractRaw(metadata, 'labels', 'priority') AS value
|
|
FROM spend_logs FINAL
|
|
WHERE start_time >= now() - INTERVAL 1 DAY
|
|
AND JSONHas(metadata, 'labels', 'priority')
|
|
LIMIT 100
|