Skip to content

Commit fb12e03

Browse files
committed
♻️ replace pid/ppid with instance_id/parent_instance_id on execution_context
1 parent b4549f8 commit fb12e03

4 files changed

Lines changed: 17 additions & 19 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,13 +900,13 @@ export type RumExecutionContextEvent = CommonProperties & {
900900
*/
901901
readonly type: 'main-process' | 'renderer-process' | 'utility-process';
902902
/**
903-
* OS process ID
903+
* Platform-specific identifier stable for the full lifetime of the execution context, survives session rollovers (e.g. OS PID, thread ID, tab ID)
904904
*/
905-
readonly pid: number;
905+
readonly instance_id: string;
906906
/**
907-
* Parent OS process ID
907+
* Platform-specific identifier of the parent execution context (e.g. parent OS PID)
908908
*/
909-
readonly ppid?: number;
909+
readonly parent_instance_id?: string;
910910
/**
911911
* Execution context name
912912
*/

lib/esm/generated/rum.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,13 +900,13 @@ export type RumExecutionContextEvent = CommonProperties & {
900900
*/
901901
readonly type: 'main-process' | 'renderer-process' | 'utility-process';
902902
/**
903-
* OS process ID
903+
* Platform-specific identifier stable for the full lifetime of the execution context, survives session rollovers (e.g. OS PID, thread ID, tab ID)
904904
*/
905-
readonly pid: number;
905+
readonly instance_id: string;
906906
/**
907-
* Parent OS process ID
907+
* Platform-specific identifier of the parent execution context (e.g. parent OS PID)
908908
*/
909-
readonly ppid?: number;
909+
readonly parent_instance_id?: string;
910910
/**
911911
* Execution context name
912912
*/

samples/rum-events/execution_context.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"execution_context": {
1818
"id": "b1a2c3d4-e5f6-7890-abcd-ef1234567890",
1919
"type": "renderer-process",
20-
"pid": 1236,
21-
"ppid": 1234,
20+
"instance_id": "1236",
21+
"parent_instance_id": "1234",
2222
"name": "renderer",
2323
"duration": 220000000000,
2424
"exit_reason": "clean-exit"

schemas/rum/execution_context-schema.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"execution_context": {
2121
"type": "object",
2222
"description": "Execution context properties",
23-
"required": ["id", "type", "pid"],
23+
"required": ["id", "type", "instance_id"],
2424
"properties": {
2525
"id": {
2626
"type": "string",
@@ -34,16 +34,14 @@
3434
"enum": ["main-process", "renderer-process", "utility-process"],
3535
"readOnly": true
3636
},
37-
"pid": {
38-
"type": "integer",
39-
"description": "OS process ID",
40-
"minimum": 0,
37+
"instance_id": {
38+
"type": "string",
39+
"description": "Platform-specific identifier stable for the full lifetime of the execution context, survives session rollovers (e.g. OS PID, thread ID, tab ID)",
4140
"readOnly": true
4241
},
43-
"ppid": {
44-
"type": "integer",
45-
"description": "Parent OS process ID",
46-
"minimum": 0,
42+
"parent_instance_id": {
43+
"type": "string",
44+
"description": "Platform-specific identifier of the parent execution context (e.g. parent OS PID)",
4745
"readOnly": true
4846
},
4947
"name": {

0 commit comments

Comments
 (0)