@@ -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 [ ]
@@ -457,6 +466,7 @@ export function validateAndBuildRumConfiguration(
457466 workerUrl : initConfiguration . workerUrl ,
458467 compressIntakeRequests : ! ! initConfiguration . compressIntakeRequests ,
459468 trackUserInteractions : ! ! ( initConfiguration . trackUserInteractions ?? true ) ,
469+ betaEnableViewUpdates : ! ! initConfiguration . betaEnableViewUpdates ,
460470 trackViewsManually : ! ! initConfiguration . trackViewsManually ,
461471 trackResources : ! ! ( initConfiguration . trackResources ?? true ) ,
462472 trackResourceHeaders : validateAndBuildTrackResourceHeaders ( initConfiguration ) ,
@@ -685,6 +695,7 @@ export function serializeRumConfiguration(configuration: RumInitConfiguration) {
685695 profiling_sample_rate : configuration . profilingSampleRate ,
686696 use_remote_configuration_proxy : ! ! configuration . remoteConfigurationProxy ,
687697 track_resource_headers : getTrackResourceHeadersTelemetryValue ( configuration . trackResourceHeaders ) ,
698+ beta_enable_view_updates : configuration . betaEnableViewUpdates ,
688699 ...baseSerializedConfiguration ,
689700 } satisfies RawTelemetryConfiguration
690701}
0 commit comments