@@ -595,22 +595,23 @@ describe('serializeRumConfiguration', () => {
595595 remoteConfigurationProxy : 'config' ,
596596 plugins : [ { name : 'foo' , getConfigurationTelemetry : ( ) => ( { bar : true } ) } ] ,
597597 trackFeatureFlagsForEvents : [ 'vital' ] ,
598- profilingSampleRate : 0 ,
598+ profilingSampleRate : 42 ,
599599 propagateTraceBaggage : true ,
600600 }
601601
602602 type MapRumInitConfigurationKey < Key extends string > = Key extends keyof InitConfiguration
603603 ? MapInitConfigurationKey < Key >
604- : Key extends 'workerUrl' | 'allowedTracingUrls' | 'excludedActivityUrls' | 'allowedGraphQlUrls'
604+ : Key extends
605+ | 'workerUrl'
606+ | 'allowedTracingUrls'
607+ | 'excludedActivityUrls'
608+ | 'remoteConfigurationProxy'
609+ | 'allowedGraphQlUrls'
605610 ? `use_${CamelToSnakeCase < Key > } `
606611 : Key extends 'trackLongTasks'
607612 ? 'track_long_task' // oops
608- : Key extends
609- | 'applicationId'
610- | 'subdomain'
611- | 'remoteConfigurationProxy'
612- | 'profilingSampleRate'
613- | 'propagateTraceBaggage'
613+ : // The following options are not reported as telemetry. Please avoid adding more of them.
614+ Key extends 'applicationId' | 'subdomain'
614615 ? never
615616 : CamelToSnakeCase < Key >
616617 // By specifying the type here, we can ensure that serializeConfiguration is returning an
@@ -626,6 +627,7 @@ describe('serializeRumConfiguration', () => {
626627 session_replay_sample_rate : 60 ,
627628 trace_sample_rate : 50 ,
628629 trace_context_injection : TraceContextInjection . ALL ,
630+ propagate_trace_baggage : true ,
629631 use_allowed_tracing_urls : true ,
630632 use_allowed_graph_ql_urls : true ,
631633 use_track_graph_ql_payload : false ,
@@ -645,6 +647,8 @@ describe('serializeRumConfiguration', () => {
645647 plugins : [ { name : 'foo' , bar : true } ] ,
646648 track_feature_flags_for_events : [ 'vital' ] ,
647649 remote_configuration_id : '123' ,
650+ use_remote_configuration_proxy : true ,
651+ profiling_sample_rate : 42 ,
648652 } )
649653 } )
650654} )
0 commit comments