Skip to content

API: performance metrics aggregation (#194) - #284

Merged
unjica merged 1 commit into
developfrom
feature/performance-summary-194
Jul 8, 2026
Merged

unjica merged 1 commit into
developfrom
feature/performance-summary-194

Conversation

@unjica

@unjica unjica commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds GET /api/performance/summary with project-scoped filters (app, env, release, platform) and the same time-window semantics as other dashboard summary endpoints
  • Aggregates ingested $web_vital events: p75/p95 for LCP, INP (including legacy FID samples), CLS, and TTFB; Good / Needs improvement / Poor distribution (% of samples); per-vital p75 time series for charts
  • Aggregates Node $request latency: avg, p95, Apdex (300ms threshold), prior-period compare, and sparkline series
  • Adds dashboard client helper fetchPerformanceSummary() + shared response types for the Performance page UI (Performance page: KPIs, vitals charts, and rating distribution #195)

Closes #194

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Unit tests for window resolution, vital normalization (FID→INP), rating distribution, series merge, and SQL helpers
  • Bugbot review — fixed FID/INP rating band mismatch by computing bands from value thresholds at aggregation time
  • Manual: ingest $web_vital + $request samples, call GET /api/performance/summary?range=7d with project auth headers and verify vitals + latency blocks

Made with Cursor

@unjica unjica added this to the v1.5.0 — Analytics dashboard milestone Jul 8, 2026
@unjica
unjica merged commit 263d3d8 into develop Jul 8, 2026
4 checks passed
@unjica
unjica deleted the feature/performance-summary-194 branch July 8, 2026 17:16
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.

API: performance metrics aggregation (Web Vitals + request latency)

1 participant