Skip to content

1.50.2

Choose a tag to compare

@tomshen tomshen released this 21 Apr 20:50
· 42 commits to master since this release
5a9ff30

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.