Skip to content

Commit 364afe3

Browse files
authored
[RUM-11186] rename step vital (#292)
* rename step vital and fields * Change instance_id to operation_key
1 parent fd61fb5 commit 364afe3

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

lib/cjs/generated/rum.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,15 +1154,15 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & {
11541154
/**
11551155
* Type of the vital
11561156
*/
1157-
readonly type: 'duration' | 'step';
1157+
readonly type: 'duration' | 'operation_step';
11581158
/**
11591159
* UUID of the vital
11601160
*/
11611161
readonly id: string;
11621162
/**
1163-
* UUID for linking the step vital to the parent event, if applicable
1163+
* UUID for distinguishing the active operations in parallel, if applicable
11641164
*/
1165-
readonly parent_id?: string;
1165+
readonly operation_key?: string;
11661166
/**
11671167
* Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $
11681168
*/

lib/esm/generated/rum.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,15 +1154,15 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & {
11541154
/**
11551155
* Type of the vital
11561156
*/
1157-
readonly type: 'duration' | 'step';
1157+
readonly type: 'duration' | 'operation_step';
11581158
/**
11591159
* UUID of the vital
11601160
*/
11611161
readonly id: string;
11621162
/**
1163-
* UUID for linking the step vital to the parent event, if applicable
1163+
* UUID for distinguishing the active operations in parallel, if applicable
11641164
*/
1165-
readonly parent_id?: string;
1165+
readonly operation_key?: string;
11661166
/**
11671167
* Name of the vital, as it is also used as facet path for its value, it must contain only letters, digits, or the characters - _ . @ $
11681168
*/

samples/rum-events/vital.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"id": "47af0abb-3de1-4170-a491-4473716df979",
1919
"type": "duration",
2020
"name": "user-timing",
21-
"custom": {
22-
"user-timing": 100
23-
}
21+
"duration": 100
2422
},
2523
"_dd": {
2624
"format_version": 2,

schemas/rum/vital-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"type": {
2929
"type": "string",
3030
"description": "Type of the vital",
31-
"enum": ["duration", "step"],
31+
"enum": ["duration", "operation_step"],
3232
"readOnly": true
3333
},
3434
"id": {
@@ -37,9 +37,9 @@
3737
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
3838
"readOnly": true
3939
},
40-
"parent_id": {
40+
"operation_key": {
4141
"type": "string",
42-
"description": "UUID for linking the step vital to the parent event, if applicable",
42+
"description": "UUID for distinguishing the active operations in parallel, if applicable",
4343
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
4444
"readOnly": true
4545
},

0 commit comments

Comments
 (0)