Skip to content

Commit 8080edf

Browse files
authored
[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 a9becba commit 8080edf

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
@@ -1160,7 +1160,7 @@ export declare type RumVitalEvent = CommonProperties & ViewContainerSchema & {
11601160
*/
11611161
readonly id: string;
11621162
/**
1163-
* UUID for distinguishing the active operations in parallel, if applicable
1163+
* Optional key to distinguish between multiple operations of the same name running in parallel (e.g., 'photo_upload' with keys 'profile_pic' vs 'cover')
11641164
*/
11651165
readonly operation_key?: string;
11661166
/**

lib/esm/generated/rum.d.ts

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

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)