Skip to content

Commit cbd988f

Browse files
mariedmeloytoro
authored andcommitted
[Feature Operation] Update operation_key definition (#296)
Clarifies `operation_key` description + correct type. `operation_key` is customer-generated and is not a UUID. There might be a regex added later, but it's not defined yet.
1 parent b7715f0 commit cbd988f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/cjs/generated/rum.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & {
12041204
*/
12051205
readonly id: string;
12061206
/**
1207-
* UUID for distinguishing the active operations in parallel, if applicable
1207+
* Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')
12081208
*/
12091209
readonly operation_key?: string;
12101210
/**

lib/esm/generated/rum.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & {
12041204
*/
12051205
readonly id: string;
12061206
/**
1207-
* UUID for distinguishing the active operations in parallel, if applicable
1207+
* Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')
12081208
*/
12091209
readonly operation_key?: string;
12101210
/**

schemas/rum/vital-schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
},
4040
"operation_key": {
4141
"type": "string",
42-
"description": "UUID for distinguishing the active operations in parallel, if applicable",
43-
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
42+
"description": "Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')",
4443
"readOnly": true
4544
},
4645
"name": {

0 commit comments

Comments
 (0)