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
225 B
SQL
8 lines
225 B
SQL
SELECT
|
|
TraceId, SpanId, Model, InputTokens, OutputTokens,
|
|
Duration / 1000000 AS duration_ms
|
|
FROM otel_traces
|
|
WHERE Timestamp >= now() - INTERVAL 1 DAY
|
|
AND ObservationType = 'llm'
|
|
ORDER BY Timestamp DESC
|
|
LIMIT 100
|