@@ -540,22 +540,18 @@ describe('serializeRumConfiguration', () => {
540540 remoteConfigurationProxy : 'config' ,
541541 plugins : [ { name : 'foo' , getConfigurationTelemetry : ( ) => ( { bar : true } ) } ] ,
542542 trackFeatureFlagsForEvents : [ 'vital' ] ,
543- profilingSampleRate : 0 ,
543+ profilingSampleRate : 42 ,
544544 propagateTraceBaggage : true ,
545545 }
546546
547547 type MapRumInitConfigurationKey < Key extends string > = Key extends keyof InitConfiguration
548548 ? MapInitConfigurationKey < Key >
549- : Key extends 'workerUrl' | 'allowedTracingUrls' | 'excludedActivityUrls'
549+ : Key extends 'workerUrl' | 'allowedTracingUrls' | 'excludedActivityUrls' | 'remoteConfigurationProxy'
550550 ? `use_${CamelToSnakeCase < Key > } `
551551 : Key extends 'trackLongTasks'
552552 ? 'track_long_task' // oops
553- : Key extends
554- | 'applicationId'
555- | 'subdomain'
556- | 'remoteConfigurationProxy'
557- | 'profilingSampleRate'
558- | 'propagateTraceBaggage'
553+ : // The following options are not reported as telemetry. Please avoid adding more of them.
554+ Key extends 'applicationId' | 'subdomain'
559555 ? never
560556 : CamelToSnakeCase < Key >
561557 // By specifying the type here, we can ensure that serializeConfiguration is returning an
@@ -569,6 +565,7 @@ describe('serializeRumConfiguration', () => {
569565 session_replay_sample_rate : 60 ,
570566 trace_sample_rate : 50 ,
571567 trace_context_injection : TraceContextInjection . ALL ,
568+ propagate_trace_baggage : true ,
572569 use_allowed_tracing_urls : true ,
573570 selected_tracing_propagators : [ 'tracecontext' , 'datadog' ] ,
574571 use_excluded_activity_urls : true ,
@@ -586,6 +583,8 @@ describe('serializeRumConfiguration', () => {
586583 plugins : [ { name : 'foo' , bar : true } ] ,
587584 track_feature_flags_for_events : [ 'vital' ] ,
588585 remote_configuration_id : '123' ,
586+ use_remote_configuration_proxy : true ,
587+ profiling_sample_rate : 42 ,
589588 } )
590589 } )
591590} )
0 commit comments