Repository navigation
feat: session ID columns, session.id from rum.sessionId, severity text from number - #3564
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
🦋 Changeset detectedLatest commit: fc1ad18 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🔴 Tier 4 — CriticalTouches authentication, tenancy data models, the public API or shipped database config — or substantially changes the query rendering engine, background tasks, the OTel pipeline, image build, or release CI. Why this tier:
Review process: Deep review from a domain expert. Synchronous walkthrough may be required. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review
2 finding(s): 🔴 0 critical · 🟠 0 major · 🔵 2 minor None could be anchored to changed lines; they are listed below. Findings outside the changed lines2 minor
Severity is the reviewer's own estimate and is used for ordering, not filtering. No finding blocks merge automatically; a maintainer decides. |
…ector-session-id-severity-number
E2E Test Results✅ All tests passed • 462 passed • 1 skipped • 1452s
Tests ran across 4 shards in parallel. |
Deep ReviewScope: OTel-collector feature PR against ✅ No critical issues found. 🟡 P2 — recommended
🔵 P3 nitpicks (5)
Reviewers (7): correctness, data-migrations, testing, maintainability, reliability, performance, previous-comments. Testing gaps:
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 |
Closes HDX-5733 and HDX-5735
Summary
Prepares sessions for dropping
rum.sessionIdand for per-session event counts. Old@hyperdx/browserdata now also gets OTelsession.id, and session queries read small materialized columns instead of attribute maps. Logs from the new browser SDK that only set a severity number now get a level.Changes
rum.sessionIdandsession.idcolumns onhyperdx_sessionsand asession.idcolumn onotel_logs, all with skip indexes. New tables only. Existing installs can add them withALTER TABLE.compattable for sessions table, allows for swapping text/bloom filters.transform/session_idprocessor copiesrum.sessionIdtosession.idon spans, logs and replay events. It never overwrites an existing value. Custom configs that overrideprocessors:need to add it.tracetofatal).These changes unlock future performance improvements and more convenient filtering.
Screenshots
Example of a log row that only sent

SeverityNumbershow showing with it's correlatedinfolevel inSeverityText:Example of

rum.sessionIdbeing copied intosession.id, preserving both: