Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(llm-observability): speed up the traces scene #27955

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

skoob13
Copy link
Contributor

@skoob13 skoob13 commented Jan 28, 2025

Problem

The traces query runner returns a complete list of trace events, including generations, spans, metrics, and feedback. This bloats the payload size, so the speed is meh. Reducing the payload size is a low-hanging optimization (30mb -> 130kb for PostHog).

Changes

  • When traceId is specified, return the entire payload.
  • Otherwise, only return the feedback and metrics. We don't display them yet, but I'd love to see them.
  • Show data for the last 7 days in the dashboard.
  • Show data for the last 24 hours in traces and generations.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Unit tests, manual testing.

@skoob13 skoob13 requested review from Twixes and k11kirky January 28, 2025 13:04
@skoob13 skoob13 changed the title feat(llm-observability): speed up traces feat(llm-observability): speed up the traces scene Jan 28, 2025
Copy link
Contributor

@k11kirky k11kirky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@k11kirky k11kirky enabled auto-merge (squash) January 28, 2025 22:42
@k11kirky k11kirky merged commit 1baf7ee into master Jan 28, 2025
92 checks passed
@k11kirky k11kirky deleted the fix/filter-out-events-in-traces-scene branch January 28, 2025 22:50
adamleithp pushed a commit that referenced this pull request Jan 29, 2025
adamleithp pushed a commit that referenced this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants