You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bug Fixes
llmobs: support min/max/sum/avg aggregations on the /api/v1/logs-analytics/aggregate endpoint and expose timestamp (start_ns in milliseconds) as a resolvable field so the static app's sessions table can compute session duration. Also fixes earliest / latest so a value of 0 is no longer collapsed to an empty string.
llmobs: stop rolling up aggregated token_usage onto the root (agent) span's metrics dict from the claude and pi hook handlers. The trace aggregate builder sums metrics.total_tokens across every span in the trace, so writing the rollup on the root caused session-table token totals to double-count relative to the per-span values.
POST /api/ui/query/scalar no longer filters LLMObs spans by the request's from/to window. The sibling list and aggregate endpoints ignore the time window, so filtering here caused the LLMObs Sessions table to render rows for older sessions with blank cost and token columns whenever the UI sent a short (e.g. 15 minute) timeframe. Aggregates are now computed over all tracked spans, consistent with the other endpoints.