Repository navigation
feat(app): SLI, error budget and burn rate charts on the SLO page - #3810
alex-fedotyev wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Duplicate code analysis1 new clone introduced by this PR.
If one of these duplicates a helper that already exists, import it instead jscpd compared this branch against |
E2E Test Results✅ All tests passed • 477 passed • 1 skipped • 1148s
Tests ran across 4 shards in parallel. |
Adds three charts to the SLO page over the window, from the same bucketed query as the numbers above them, so both describe the same moment: the SLI per bucket against the target, with the periods below it shaded; the error budget left, with the overspent part shaded; and the burn rate over the trailing hour, with buckets at or over the fast burn threshold in red. The axis starts where data starts, and clicking a bucket opens its bad events. A definition panel below says what the SLO counts (source, eligible events and filters, good events or the latency rule, objective) and when the stored copy the list uses was last updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
741a52e to
2ebfd1a
Compare
|
🟡 Tier 3 — StandardIntroduces new logic, modifies core functionality, or touches areas with non-trivial risk. Why this tier:
Review process: Full human review — logic, architecture, edge cases. Stats
|
PR Review
4 finding(s): 🔴 0 P0/P1 · 🟡 2 P2 · 🔵 2 P3 None could be anchored to changed lines; they are listed below. 2 P3 folded at the bottom. Findings outside the changed lines
🔵 2 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
Deep ReviewThree new SLO history charts (SLI vs target, error-budget burndown, burn rate) plus a Definition panel on the SLO detail page, fed by the existing bucketed-counts query. The core math is sound: 🟡 P2 -- recommended
🔵 P3 nitpicks (8)
Reviewers (9): correctness, testing, maintainability, project-standards, kieran-typescript, julik-frontend-races, adversarial, agent-native, learnings-researcher. Testing gaps:
Notes: No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
Summary
Adds three charts to the SLO page over the window, from the same bucketed
query as the numbers above them, so both describe the same moment: the SLI
per bucket against the target, with the periods below it shaded; the error
budget left, with the overspent part shaded; and the burn rate over the
trailing hour, with buckets at or over the fast burn threshold in red. The
axis starts where data starts, and clicking a bucket opens its bad events.
A definition panel below says what the SLO counts (source, eligible events
and filters, good events or the latency rule, objective) and when the
stored copy the list uses was last updated.
Stack
Part 23 of 27 PRs in a GitHub stack (stack #3815). The header says this PR merges into the branch below it, but the stack's base is
main: merging a PR lands it and every PR below it onmain, one squashed commit each. Each diff is only its own change, and CI runs as if each PR targetsmain.Parts 1 to 6 are shared code, 7 to 13 the API and its MCP tools, and 14 to 27 the app. Everything ships behind
ENABLE_SLOS(API) andNEXT_PUBLIC_ENABLE_SLOS(app), both off by default.Screenshots or video
How to reproduce
Starting point:
yarn devon this branch (the pages need the API)..env.developmentturns onENABLE_SLOSandNEXT_PUBLIC_ENABLE_SLOS(parts 7 and 14). Use a trace or log source with data; the demo server works.On the previous part: the SLO page has stats only.
On this branch:
Test plan
How to test on Vercel preview
N/A: SLOs need the API, and the preview runs in local mode, where they are off.
References
[no-changeset: allow] The changeset for this piece is in part 27.
[no-story: allow] The new SLO components are page-level and fed by queries and form state, so this feature has no Storybook stories.
[as-cast: allow] The cast check matches the word "as" in comments and strings here; the diff has no
ascasts.