Repository navigation
Add RUM audience breakdowns and reusable segments - #740
Conversation
Monoscope production impact · Worth checkingProject Evidence window (UTC): 2026-10-19 16:31:12.790168741 UTC → 2026-10-26 16:31:12.790168741 UTC
Inferred: The new migration reuses a numeric migration version that is already present in the migration set. If migration discovery keys ordering or applied state by this prefix, deployment can reject the migration, apply migrations ambiguously, or skip the segment table, causing the new RUM segment routes to fail at runtime. Next check: Assign the migration the next unused version, then run the project's migration listing and an upgrade test from an existing database snapshot. telemetry evidence · Observed: 9045472 events · 0 errors · service: srv-captain--monoscope Coverage: Evidence is capped at 20 service/environment groups, monitors and dashboard queries. Telemetry describes the mapped service, not a proven changed-path or deployed-revision match. Monitor and dashboard references are project-wide; their relationship to the mapped service is unverified. Diff coverage is incomplete: only the first 30 files and 2000 characters per patch are inspected. No migration-runner output or upgrade test evidence was provided to confirm how duplicate migration versions are handled. Telemetry is aggregate service data and is not matched to the changed revision, migration execution, or RUM segment request path. |
RUM Audience previously combined browser, operating-system, and device counts in one table. This change separates those breakdowns, adds traffic share and session error rates, and keeps missing user agents visible as Unknown. Sessions are counted once even when they contain repeated events.
Application, browser, OS, device, and session-health filters carry into Errors and Sessions. Teams can save named filter combinations as project segments. The identified-user table searches the full selected audience before applying its 200-result display limit and links each user to session history.
The layout keeps three breakdown tables where they fit, stacks them on narrower canvases, and uses compact totals on mobile. It also preserves the earlier requested blue selection styling for visualization tabs.
Validation:
Adds the append-only
0254_rum_segments.sqlmigration for project-scoped saved filters. The shared numeric prefix is supported:runPendingMigrationssorts and records full filenames (src/System/Config.hs:638–644), and the integration database applied both0254migrations successfully. The migration was already applied locally and remains unchanged under the append-only rule. Geography, first-touch acquisition, and retention remain the brief's later phase, pending reliable attribution and identity contracts.