@@ -343,6 +343,14 @@ export interface RumInitConfiguration extends InitConfiguration {
343343 * @category Data Collection
344344 */
345345 allowedGraphQlUrls ?: Array < MatchOption | GraphQlUrlOption > | undefined
346+
347+ /**
348+ * Enable partial view updates, which reduces bandwidth by sending only changed
349+ * fields instead of full view events on intermediate updates.
350+ *
351+ * @category Beta
352+ */
353+ betaEnableViewUpdates ?: boolean | undefined
346354}
347355
348356export type HybridInitConfiguration = Omit < RumInitConfiguration , 'applicationId' | 'clientToken' >
@@ -386,6 +394,7 @@ export interface RumConfiguration extends Configuration {
386394 sessionReplaySampleRate : number
387395 startSessionReplayRecordingManually : boolean
388396 trackUserInteractions : boolean
397+ betaEnableViewUpdates : boolean
389398 trackViewsManually : boolean
390399 trackResources : boolean
391400 trackResourceHeaders : MatchHeader [ ]
@@ -458,6 +467,7 @@ export function validateAndBuildRumConfiguration(
458467 workerUrl : initConfiguration . workerUrl ,
459468 compressIntakeRequests : ! ! initConfiguration . compressIntakeRequests ,
460469 trackUserInteractions : ! ! ( initConfiguration . trackUserInteractions ?? true ) ,
470+ betaEnableViewUpdates : ! ! initConfiguration . betaEnableViewUpdates ,
461471 trackViewsManually : ! ! initConfiguration . trackViewsManually ,
462472 trackResources : ! ! ( initConfiguration . trackResources ?? true ) ,
463473 trackResourceHeaders : validateAndBuildTrackResourceHeaders ( initConfiguration ) ,
@@ -687,6 +697,7 @@ export function serializeRumConfiguration(configuration: RumInitConfiguration) {
687697 profiling_sample_rate : configuration . profilingSampleRate ,
688698 use_remote_configuration_proxy : ! ! configuration . remoteConfigurationProxy ,
689699 track_resource_headers : getTrackResourceHeadersTelemetryValue ( configuration . trackResourceHeaders ) ,
700+ beta_enable_view_updates : configuration . betaEnableViewUpdates ,
690701 ...baseSerializedConfiguration ,
691702 } satisfies RawTelemetryConfiguration
692703}
0 commit comments