Repository navigation
Description
Roadmap priority
5
Goal
Provide a dedicated period-comparison experience so developers can answer:
- Is this better or worse than before?
- Did the latest deployment improve application health?
- Are sessions, errors, and adoption increasing or decreasing over time?
Comparisons must remain scoped to the currently selected project, environment, platform, and date range where applicable.
Examples
Time comparisons
Today vs Yesterday
Errors +35%
Sessions +12%
Users +48%
Events −15%
This week vs Last week
Error rate −65%
Sessions +240%
New errors −12
Release comparisons
Release v1.2.4 vs v1.2.3
Error rate −42%
Sessions +28%
Errors −65%
Adoption +35%
Current state
- Overview already supports some prior-period KPI compare modes (
previous/week-ago) from closed Overview: KPI compare, sparklines, and latency when available #183. - Errors / Events / Sessions summary endpoints expose limited “vs prior period” deltas for equal-length windows.
- There is no first-class, consistent compare UX across Overview, Errors, Events, Sessions, and Releases.
- Release-vs-release comparison depends on Release Health (Dashboard: Releases Health page — adoption and regression across versions #453) for historical first-seen ordering and previous-release semantics.
Supported time comparisons
The MVP supports:
| Preset | Current window | Compare window |
|---|---|---|
| Today vs Yesterday | Calendar today (project TZ or UTC — document in PR) | Previous calendar day |
| This week vs Last week | Current week | Previous week of equal length |
| This month vs Last month | Current month | Previous month of equal length |
| Custom date-range | User-selected range A | Range B of equal duration (see Custom ranges) |
Release comparisons
Release-vs-release comparisons build on Release Health (#453).
For MVP, release comparisons may compare:
- the currently selected release
- its previous historical release (as defined by Dashboard: Releases Health page — adoption and regression across versions #453: next-earlier historical first-seen within project / environment / platform)
Release comparisons are conceptually separate from time-based comparisons (do not mix “this week vs last week” with “v1.2.4 vs v1.2.3” in one control without clear mode switching).
Release identifiers are arbitrary application-defined strings — no semantic version parsing.
Comparison targets
The MVP supports comparisons for:
| Surface | Notes |
|---|---|
| Overview KPIs | Expand / unify existing #183 compare UX |
| Errors | Counts, new errors, error rate where defined |
| Events | Counts and related summary KPIs |
| Sessions | Counts, users, related summary KPIs |
| Releases | Health KPIs from #453 (error rate, sessions, adoption, …) |
Additional comparison targets may be added later.
Deliverables
Compare mode
- Add an explicit compare mode to supported dashboard pages
- Support predefined time comparisons (today / week / month)
- Support custom date-range comparisons (equal duration only)
- Support release-vs-previous-release mode where Dashboard: Releases Health page — adoption and regression across versions #453 data is available
- Preserve existing project and filter scope when entering or switching compare mode
Comparison metrics
- Show both absolute values and percentage (or pp) changes where applicable
- Display increases and decreases consistently across all supported metrics (sign, color, arrows)
- Handle zero-value comparisons gracefully (see Percentage change rules)
- Clearly indicate when metrics are not comparable (show
—, not fake zeros)
Navigation & scope
- Preserve project, environment, platform, release, and date-range filters when switching comparison modes
- Maintain compatibility with existing dashboard URLs where possible (document any new query params, e.g.
compare=…,compareFrom/compareTo)
UX & quality
- Loading, empty, and error states
- Clear visual indicators for increases and decreases
- Consistent formatting of percentages and metric deltas
- API and dashboard test coverage for comparison calculations and edge cases
Custom ranges
For MVP, custom comparisons must use ranges of equal duration.
Example:
2026-07-01 → 2026-07-07
vs
2026-06-24 → 2026-06-30
Comparisons between arbitrary unequal durations (e.g. one day vs three months) are out of scope for the MVP.
Percentage change rules
Percentage changes must handle zero-value comparisons gracefully.
| From → To | Display |
|---|---|
0 → 120 sessions |
New (or equivalent; never ÷0) |
120 → 60 sessions |
−50% |
12 → 24 errors |
+100% |
0 → 0 |
— or 0% — pick one and document it |
| Missing / incomparable | — |
Division-by-zero must never be displayed.
Metrics that cannot be calculated reliably should display — rather than misleading values.
For rates already expressed as percentages (e.g. error rate), prefer percentage-point (pp) deltas when comparing rates, and % deltas when comparing absolute counts — stay consistent with Overview health copy where possible.
Technical notes
- Reuse existing prior-window helpers from Overview / page summaries (
compareLabel, equal-length windows) rather than inventing a second semantics. - Timezone for “today / yesterday / week / month” must be explicit in the PR (UTC vs project/org preference).
- Ranking and formatting may improve later without changing the API contract for compare payloads.
- Results remain scoped to the selected project / workspace (RBAC unchanged).
Related
- Overview: KPI compare, sparklines, and latency when available #183 — Overview KPI prior-period comparisons (done)
- Dashboard: Releases Health page — adoption and regression across versions #453 — Release Health (release-vs-release comparisons)
- Dashboard: Overview release (and polish platform) scope filters #448 — Overview release / platform scope filters (done)
- Dashboard: Events and Errors list Release column #450 — Release columns on Events and Errors lists (done)
Out of scope
- AI-generated trend analysis
- Predictive analytics
- Arbitrary-duration comparisons (e.g. one day vs three months)
- Semantic version parsing for releases
- Saved comparison presets
- Cross-project comparisons outside the current workspace selection
Base branch
develop
Suggested acceptance checks
- Today vs Yesterday, week vs week, and month vs month comparisons calculate correctly for equal-length windows.
- Custom date-range comparisons work only for equal-duration ranges (unequal ranges rejected or blocked in UI).
- Absolute values and percentage / pp changes display consistently across supported metrics.
- Zero-value comparisons never produce division-by-zero results (
New/—as documented). - Release comparisons integrate with Release Health (Dashboard: Releases Health page — adoption and regression across versions #453) previous-release semantics (no semver).
- Existing dashboard scope and filters are preserved when entering or switching compare mode.
- Empty and no-data states show appropriate messaging; incomparable metrics show
—. - Tests cover comparison calculations, zero-value handling, equal-duration enforcement, and scope preservation.
Activity
[-]Compare periods: today/week/month vs previous (and custom ranges)[/-][+]Dashboard: Compare periods and releases — explicit better/worse UX[/+]Merge pull request #594 from Telemetry-Tracker/feat/495-compare-periods
feat: add compare periods UX across dashboard analytics (Telemetry-Tr…
Release prep v1.17.0: CHANGELOG + API_VERSION for Performance Intelli…