Skip to content

Commit b4549f8

Browse files
committed
♻️ rename execution_context.role to type with -process enum suffixes
1 parent f9483b4 commit b4549f8

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,9 @@ export type RumExecutionContextEvent = CommonProperties & {
896896
*/
897897
readonly id: string;
898898
/**
899-
* Role of the execution context
899+
* Type of the execution context
900900
*/
901-
readonly role: 'main' | 'renderer' | 'utility';
901+
readonly type: 'main-process' | 'renderer-process' | 'utility-process';
902902
/**
903903
* OS process ID
904904
*/
@@ -1435,9 +1435,9 @@ export interface CommonProperties {
14351435
*/
14361436
readonly id?: string;
14371437
/**
1438-
* Role of the execution context
1438+
* Type of the execution context
14391439
*/
1440-
readonly role?: 'main' | 'renderer' | 'utility';
1440+
readonly type?: 'main-process' | 'renderer-process' | 'utility-process';
14411441
/**
14421442
* Execution context name
14431443
*/

lib/esm/generated/rum.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,9 @@ export type RumExecutionContextEvent = CommonProperties & {
896896
*/
897897
readonly id: string;
898898
/**
899-
* Role of the execution context
899+
* Type of the execution context
900900
*/
901-
readonly role: 'main' | 'renderer' | 'utility';
901+
readonly type: 'main-process' | 'renderer-process' | 'utility-process';
902902
/**
903903
* OS process ID
904904
*/
@@ -1435,9 +1435,9 @@ export interface CommonProperties {
14351435
*/
14361436
readonly id?: string;
14371437
/**
1438-
* Role of the execution context
1438+
* Type of the execution context
14391439
*/
1440-
readonly role?: 'main' | 'renderer' | 'utility';
1440+
readonly type?: 'main-process' | 'renderer-process' | 'utility-process';
14411441
/**
14421442
* Execution context name
14431443
*/

samples/rum-events/execution_context.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"source": "electron",
1717
"execution_context": {
1818
"id": "b1a2c3d4-e5f6-7890-abcd-ef1234567890",
19-
"role": "renderer",
19+
"type": "renderer-process",
2020
"pid": 1236,
2121
"ppid": 1234,
2222
"name": "renderer",

schemas/rum/_common-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,10 @@
518518
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
519519
"readOnly": true
520520
},
521-
"role": {
521+
"type": {
522522
"type": "string",
523-
"description": "Role of the execution context",
524-
"enum": ["main", "renderer", "utility"],
523+
"description": "Type of the execution context",
524+
"enum": ["main-process", "renderer-process", "utility-process"],
525525
"readOnly": true
526526
},
527527
"name": {

schemas/rum/execution_context-schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020
"execution_context": {
2121
"type": "object",
2222
"description": "Execution context properties",
23-
"required": ["id", "role", "pid"],
23+
"required": ["id", "type", "pid"],
2424
"properties": {
2525
"id": {
2626
"type": "string",
2727
"description": "UUID of the execution context",
2828
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
2929
"readOnly": true
3030
},
31-
"role": {
31+
"type": {
3232
"type": "string",
33-
"description": "Role of the execution context",
34-
"enum": ["main", "renderer", "utility"],
33+
"description": "Type of the execution context",
34+
"enum": ["main-process", "renderer-process", "utility-process"],
3535
"readOnly": true
3636
},
3737
"pid": {

0 commit comments

Comments
 (0)