Skip to content

Commit 0b3c97f

Browse files
authored
[RUM-17847] Add remote_configuration to telemetry configuration schema (#422)
Adds config_id, version_id, last_modified, last_synced, first_applied, and sync_id fields to describe the remote configuration currently applied for a session.
1 parent 00d5005 commit 0b3c97f

3 files changed

Lines changed: 97 additions & 0 deletions

File tree

lib/cjs/generated/telemetry.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,36 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
457457
* Whether a proxy is used for remote configuration
458458
*/
459459
use_remote_configuration_proxy?: boolean;
460+
/**
461+
* Metadata of the remote configuration currently applied for this session
462+
*/
463+
remote_configuration?: {
464+
/**
465+
* Identifier of the remote configuration bundle this metadata belongs to
466+
*/
467+
config_id?: string;
468+
/**
469+
* CDN version identifier of the applied configuration
470+
*/
471+
version_id?: string;
472+
/**
473+
* CDN publish timestamp of the applied configuration, in ms from epoch
474+
*/
475+
last_modified?: number;
476+
/**
477+
* Timestamp at which the device fetched and cached this configuration version, in ms from epoch
478+
*/
479+
last_synced?: number;
480+
/**
481+
* Timestamp at which this configuration version was first observed as applied by the device, in ms from epoch. Stamped once and reused on every subsequent session that runs on the same version
482+
*/
483+
first_applied?: number;
484+
/**
485+
* Identifier of the sync that produced this configuration version, used to deduplicate repeat sessions from the same device without a persistent identifier
486+
*/
487+
sync_id?: string;
488+
[k: string]: unknown;
489+
};
460490
/**
461491
* The percentage of sessions with Profiling enabled
462492
*/

lib/esm/generated/telemetry.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,36 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
457457
* Whether a proxy is used for remote configuration
458458
*/
459459
use_remote_configuration_proxy?: boolean;
460+
/**
461+
* Metadata of the remote configuration currently applied for this session
462+
*/
463+
remote_configuration?: {
464+
/**
465+
* Identifier of the remote configuration bundle this metadata belongs to
466+
*/
467+
config_id?: string;
468+
/**
469+
* CDN version identifier of the applied configuration
470+
*/
471+
version_id?: string;
472+
/**
473+
* CDN publish timestamp of the applied configuration, in ms from epoch
474+
*/
475+
last_modified?: number;
476+
/**
477+
* Timestamp at which the device fetched and cached this configuration version, in ms from epoch
478+
*/
479+
last_synced?: number;
480+
/**
481+
* Timestamp at which this configuration version was first observed as applied by the device, in ms from epoch. Stamped once and reused on every subsequent session that runs on the same version
482+
*/
483+
first_applied?: number;
484+
/**
485+
* Identifier of the sync that produced this configuration version, used to deduplicate repeat sessions from the same device without a persistent identifier
486+
*/
487+
sync_id?: string;
488+
[k: string]: unknown;
489+
};
460490
/**
461491
* The percentage of sessions with Profiling enabled
462492
*/

schemas/telemetry/configuration-schema.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,43 @@
508508
"description": "Whether a proxy is used for remote configuration",
509509
"readOnly": false
510510
},
511+
"remote_configuration": {
512+
"type": "object",
513+
"description": "Metadata of the remote configuration currently applied for this session",
514+
"readOnly": false,
515+
"properties": {
516+
"config_id": {
517+
"type": "string",
518+
"description": "Identifier of the remote configuration bundle this metadata belongs to",
519+
"readOnly": false
520+
},
521+
"version_id": {
522+
"type": "string",
523+
"description": "CDN version identifier of the applied configuration",
524+
"readOnly": false
525+
},
526+
"last_modified": {
527+
"type": "integer",
528+
"description": "CDN publish timestamp of the applied configuration, in ms from epoch",
529+
"readOnly": false
530+
},
531+
"last_synced": {
532+
"type": "integer",
533+
"description": "Timestamp at which the device fetched and cached this configuration version, in ms from epoch",
534+
"readOnly": false
535+
},
536+
"first_applied": {
537+
"type": "integer",
538+
"description": "Timestamp at which this configuration version was first observed as applied by the device, in ms from epoch. Stamped once and reused on every subsequent session that runs on the same version",
539+
"readOnly": false
540+
},
541+
"sync_id": {
542+
"type": "string",
543+
"description": "Identifier of the sync that produced this configuration version, used to deduplicate repeat sessions from the same device without a persistent identifier",
544+
"readOnly": false
545+
}
546+
}
547+
},
511548
"profiling_sample_rate": {
512549
"type": "number",
513550
"description": "The percentage of sessions with Profiling enabled",

0 commit comments

Comments
 (0)