Skip to content

Commit f9483b4

Browse files
committed
♻️ rename process event and enrichment to execution_context
1 parent a6d3d9b commit f9483b4

6 files changed

Lines changed: 55 additions & 55 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Schema of all properties of a RUM event
66
*/
7-
export type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumViewUpdateEvent | RumProcessEvent | RumVitalEvent;
7+
export type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumViewUpdateEvent | RumExecutionContextEvent | RumVitalEvent;
88
/**
99
* Schema of all properties of an Action event
1010
*/
@@ -880,23 +880,23 @@ export type RumViewUpdateEvent = ViewContainerSchema & StreamSchema & ViewProper
880880
[k: string]: unknown;
881881
};
882882
/**
883-
* Schema of all properties of a Process event
883+
* Schema of all properties of an Execution Context event
884884
*/
885-
export type RumProcessEvent = CommonProperties & {
885+
export type RumExecutionContextEvent = CommonProperties & {
886886
/**
887887
* RUM event type
888888
*/
889-
readonly type: 'process';
889+
readonly type: 'execution_context';
890890
/**
891-
* Process properties
891+
* Execution context properties
892892
*/
893-
readonly process: {
893+
readonly execution_context: {
894894
/**
895-
* UUID of the process
895+
* UUID of the execution context
896896
*/
897897
readonly id: string;
898898
/**
899-
* Role of the process
899+
* Role of the execution context
900900
*/
901901
readonly role: 'main' | 'renderer' | 'utility';
902902
/**
@@ -908,15 +908,15 @@ export type RumProcessEvent = CommonProperties & {
908908
*/
909909
readonly ppid?: number;
910910
/**
911-
* Process name
911+
* Execution context name
912912
*/
913913
readonly name?: string;
914914
/**
915-
* Process lifetime in nanoseconds
915+
* Execution context lifetime in nanoseconds
916916
*/
917917
readonly duration?: number;
918918
/**
919-
* Reason for process exit
919+
* Reason for execution context exit
920920
*/
921921
readonly exit_reason?: 'clean-exit' | 'abnormal-exit' | 'killed' | 'crashed' | 'oom' | 'launch-failed' | 'integrity-failure' | 'memory-eviction';
922922
[k: string]: unknown;
@@ -926,7 +926,7 @@ export type RumProcessEvent = CommonProperties & {
926926
*/
927927
readonly _dd: {
928928
/**
929-
* Version of the update of the process event
929+
* Version of the update of the execution context event
930930
*/
931931
readonly document_version: number;
932932
[k: string]: unknown;
@@ -1427,19 +1427,19 @@ export interface CommonProperties {
14271427
[k: string]: unknown;
14281428
};
14291429
/**
1430-
* Process properties
1430+
* Execution context properties
14311431
*/
1432-
readonly process?: {
1432+
readonly execution_context?: {
14331433
/**
1434-
* UUID of the process
1434+
* UUID of the execution context
14351435
*/
14361436
readonly id?: string;
14371437
/**
1438-
* Role of the process
1438+
* Role of the execution context
14391439
*/
14401440
readonly role?: 'main' | 'renderer' | 'utility';
14411441
/**
1442-
* Process name
1442+
* Execution context name
14431443
*/
14441444
readonly name?: string;
14451445
[k: string]: unknown;

lib/esm/generated/rum.d.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Schema of all properties of a RUM event
66
*/
7-
export type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumViewUpdateEvent | RumProcessEvent | RumVitalEvent;
7+
export type RumEvent = RumActionEvent | RumTransitionEvent | RumErrorEvent | RumLongTaskEvent | RumResourceEvent | RumViewEvent | RumViewUpdateEvent | RumExecutionContextEvent | RumVitalEvent;
88
/**
99
* Schema of all properties of an Action event
1010
*/
@@ -880,23 +880,23 @@ export type RumViewUpdateEvent = ViewContainerSchema & StreamSchema & ViewProper
880880
[k: string]: unknown;
881881
};
882882
/**
883-
* Schema of all properties of a Process event
883+
* Schema of all properties of an Execution Context event
884884
*/
885-
export type RumProcessEvent = CommonProperties & {
885+
export type RumExecutionContextEvent = CommonProperties & {
886886
/**
887887
* RUM event type
888888
*/
889-
readonly type: 'process';
889+
readonly type: 'execution_context';
890890
/**
891-
* Process properties
891+
* Execution context properties
892892
*/
893-
readonly process: {
893+
readonly execution_context: {
894894
/**
895-
* UUID of the process
895+
* UUID of the execution context
896896
*/
897897
readonly id: string;
898898
/**
899-
* Role of the process
899+
* Role of the execution context
900900
*/
901901
readonly role: 'main' | 'renderer' | 'utility';
902902
/**
@@ -908,15 +908,15 @@ export type RumProcessEvent = CommonProperties & {
908908
*/
909909
readonly ppid?: number;
910910
/**
911-
* Process name
911+
* Execution context name
912912
*/
913913
readonly name?: string;
914914
/**
915-
* Process lifetime in nanoseconds
915+
* Execution context lifetime in nanoseconds
916916
*/
917917
readonly duration?: number;
918918
/**
919-
* Reason for process exit
919+
* Reason for execution context exit
920920
*/
921921
readonly exit_reason?: 'clean-exit' | 'abnormal-exit' | 'killed' | 'crashed' | 'oom' | 'launch-failed' | 'integrity-failure' | 'memory-eviction';
922922
[k: string]: unknown;
@@ -926,7 +926,7 @@ export type RumProcessEvent = CommonProperties & {
926926
*/
927927
readonly _dd: {
928928
/**
929-
* Version of the update of the process event
929+
* Version of the update of the execution context event
930930
*/
931931
readonly document_version: number;
932932
[k: string]: unknown;
@@ -1427,19 +1427,19 @@ export interface CommonProperties {
14271427
[k: string]: unknown;
14281428
};
14291429
/**
1430-
* Process properties
1430+
* Execution context properties
14311431
*/
1432-
readonly process?: {
1432+
readonly execution_context?: {
14331433
/**
1434-
* UUID of the process
1434+
* UUID of the execution context
14351435
*/
14361436
readonly id?: string;
14371437
/**
1438-
* Role of the process
1438+
* Role of the execution context
14391439
*/
14401440
readonly role?: 'main' | 'renderer' | 'utility';
14411441
/**
1442-
* Process name
1442+
* Execution context name
14431443
*/
14441444
readonly name?: string;
14451445
[k: string]: unknown;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "process",
2+
"type": "execution_context",
33
"date": 1591284428705,
44
"application": {
55
"id": "ac8218cf-498b-4d33-bd44-151095959547"
@@ -14,7 +14,7 @@
1414
"is_fake": true
1515
},
1616
"source": "electron",
17-
"process": {
17+
"execution_context": {
1818
"id": "b1a2c3d4-e5f6-7890-abcd-ef1234567890",
1919
"role": "renderer",
2020
"pid": 1236,

schemas/rum-events-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"$ref": "rum/view_update-schema.json"
2828
},
2929
{
30-
"$ref": "rum/process-schema.json"
30+
"$ref": "rum/execution_context-schema.json"
3131
},
3232
{
3333
"title": "RumVitalEvent",

schemas/rum/_common-schema.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -508,25 +508,25 @@
508508
}
509509
}
510510
},
511-
"process": {
511+
"execution_context": {
512512
"type": "object",
513-
"description": "Process properties",
513+
"description": "Execution context properties",
514514
"properties": {
515515
"id": {
516516
"type": "string",
517-
"description": "UUID of the process",
517+
"description": "UUID of the execution context",
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
},
521521
"role": {
522522
"type": "string",
523-
"description": "Role of the process",
523+
"description": "Role of the execution context",
524524
"enum": ["main", "renderer", "utility"],
525525
"readOnly": true
526526
},
527527
"name": {
528528
"type": "string",
529-
"description": "Process name",
529+
"description": "Execution context name",
530530
"readOnly": true
531531
}
532532
},
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
3-
"$id": "rum/process-schema.json",
4-
"title": "RumProcessEvent",
3+
"$id": "rum/execution_context-schema.json",
4+
"title": "RumExecutionContextEvent",
55
"type": "object",
6-
"description": "Schema of all properties of a Process event",
6+
"description": "Schema of all properties of an Execution Context event",
77
"allOf": [
88
{
99
"$ref": "_common-schema.json"
1010
},
1111
{
12-
"required": ["type", "process", "_dd"],
12+
"required": ["type", "execution_context", "_dd"],
1313
"properties": {
1414
"type": {
1515
"type": "string",
1616
"description": "RUM event type",
17-
"const": "process",
17+
"const": "execution_context",
1818
"readOnly": true
1919
},
20-
"process": {
20+
"execution_context": {
2121
"type": "object",
22-
"description": "Process properties",
22+
"description": "Execution context properties",
2323
"required": ["id", "role", "pid"],
2424
"properties": {
2525
"id": {
2626
"type": "string",
27-
"description": "UUID of the process",
27+
"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
},
3131
"role": {
3232
"type": "string",
33-
"description": "Role of the process",
33+
"description": "Role of the execution context",
3434
"enum": ["main", "renderer", "utility"],
3535
"readOnly": true
3636
},
@@ -48,18 +48,18 @@
4848
},
4949
"name": {
5050
"type": "string",
51-
"description": "Process name",
51+
"description": "Execution context name",
5252
"readOnly": true
5353
},
5454
"duration": {
5555
"type": "integer",
56-
"description": "Process lifetime in nanoseconds",
56+
"description": "Execution context lifetime in nanoseconds",
5757
"minimum": 0,
5858
"readOnly": true
5959
},
6060
"exit_reason": {
6161
"type": "string",
62-
"description": "Reason for process exit",
62+
"description": "Reason for execution context exit",
6363
"enum": [
6464
"clean-exit",
6565
"abnormal-exit",
@@ -82,7 +82,7 @@
8282
"properties": {
8383
"document_version": {
8484
"type": "integer",
85-
"description": "Version of the update of the process event",
85+
"description": "Version of the update of the execution context event",
8686
"minimum": 0,
8787
"readOnly": true
8888
}

0 commit comments

Comments
 (0)