@@ -86,6 +86,11 @@ export function startRumAssembly(
8686 ...VIEW_MODIFIABLE_FIELD_PATHS ,
8787 ...ROOT_MODIFIABLE_FIELD_PATHS ,
8888 } ,
89+ [ RumEventType . STREAM ] : {
90+ ...USER_CUSTOMIZABLE_FIELD_PATHS ,
91+ ...VIEW_MODIFIABLE_FIELD_PATHS ,
92+ ...ROOT_MODIFIABLE_FIELD_PATHS ,
93+ } ,
8994 }
9095 const eventRateLimiters = {
9196 [ RumEventType . ERROR ] : createEventRateLimiter (
@@ -109,7 +114,7 @@ export function startRumAssembly(
109114 LifeCycleEventType . RAW_RUM_EVENT_COLLECTED ,
110115 ( { startTime, duration, rawRumEvent, domainContext } ) => {
111116 const defaultRumEventAttributes = hooks . triggerHook ( HookNames . Assemble , {
112- eventType : rawRumEvent . type ,
117+ eventType : rawRumEvent . type === 'stream' ? 'view' : rawRumEvent . type ,
113118 startTime,
114119 duration,
115120 } ) !
@@ -126,6 +131,11 @@ export function startRumAssembly(
126131 if ( isEmptyObject ( serverRumEvent . context ! ) ) {
127132 delete serverRumEvent . context
128133 }
134+
135+ if ( rawRumEvent . type === 'stream' ) {
136+ serverRumEvent . type = 'view'
137+ }
138+
129139 lifeCycle . notify ( LifeCycleEventType . RUM_EVENT_COLLECTED , serverRumEvent )
130140 }
131141 }
0 commit comments