fix: missing session fields

This commit is contained in:
DarkSky
2026-01-16 17:26:05 +08:00
parent 924d58603f
commit 2c5559ed0b
6 changed files with 361 additions and 14 deletions

View File

@@ -71,6 +71,8 @@ const DROP_MAPPED_PARAMS = new Set(['doc_id', 'workspace_id', 'server_id']);
const PRIORITY_KEYS = new Set([
'event_id',
'session_id',
'session_number',
'engagement_time_msec',
'ui_page',
'ui_segment',
'ui_module',

View File

@@ -5,7 +5,7 @@ export type TelemetryEvent = {
userProperties?: Record<string, unknown>;
userId?: string;
clientId: string;
sessionId?: string;
sessionId?: string | number;
eventId: string;
timestampMicros?: number;
context?: {