Skip to content

Commit 2851e0a

Browse files
authored
🔊[RUM-11233] add remote_configuration_id to configuration telemetry (#3778)
* update rum-events-format * collect `remote_configuration_id` * Update format
1 parent 48f50fe commit 2851e0a

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

‎packages/core/src/domain/telemetry/telemetryEvent.types.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ export type TelemetryCommonFeaturesUsage =
495495
| RemoveAccountProperty
496496
| ClearAccount
497497
| AddFeatureFlagEvaluation
498+
| AddOperationStepVital
498499
/**
499500
* Schema of browser specific features usage
500501
*/
@@ -810,6 +811,17 @@ export interface AddFeatureFlagEvaluation {
810811
feature: 'add-feature-flag-evaluation'
811812
[k: string]: unknown
812813
}
814+
export interface AddOperationStepVital {
815+
/**
816+
* addOperationStepVital API
817+
*/
818+
feature: 'add-operation-step-vital'
819+
/**
820+
* Feature operations action type
821+
*/
822+
action_type: 'start' | 'succeed' | 'fail'
823+
[k: string]: unknown
824+
}
813825
export interface StartSessionReplayRecording {
814826
/**
815827
* startSessionReplayRecording API

‎packages/rum-core/src/domain/configuration/configuration.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ describe('serializeRumConfiguration', () => {
553553
: Key extends
554554
| 'applicationId'
555555
| 'subdomain'
556-
| 'remoteConfigurationId'
557556
| 'remoteConfigurationProxy'
558557
| 'profilingSampleRate'
559558
| 'propagateTraceBaggage'
@@ -586,6 +585,7 @@ describe('serializeRumConfiguration', () => {
586585
compress_intake_requests: true,
587586
plugins: [{ name: 'foo', bar: true }],
588587
track_feature_flags_for_events: ['vital'],
588+
remote_configuration_id: '123',
589589
})
590590
})
591591
})

‎packages/rum-core/src/domain/configuration/configuration.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ export function serializeRumConfiguration(configuration: RumInitConfiguration) {
414414
...plugin.getConfigurationTelemetry?.(),
415415
})),
416416
track_feature_flags_for_events: configuration.trackFeatureFlagsForEvents,
417+
remote_configuration_id: configuration.remoteConfigurationId,
417418
...baseSerializedConfiguration,
418419
} satisfies RawTelemetryConfiguration
419420
}

‎packages/rum-core/src/rumEvent.types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ export type RumVitalEvent = CommonProperties &
12451245
*/
12461246
readonly id: string
12471247
/**
1248-
* UUID for distinguishing the active operations in parallel, if applicable
1248+
* Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')
12491249
*/
12501250
readonly operation_key?: string
12511251
/**

0 commit comments

Comments
 (0)