Skip to content

Commit a6d3d9b

Browse files
committed
✨ add _dd.document_version to process event schema
1 parent 24bdbe2 commit a6d3d9b

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

samples/rum-events/process.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"view": {
1212
"id": "cacbf45c-3a05-48ce-b066-d76349460599",
13-
"url": "electron://fake"
13+
"url": "electron://fake",
14+
"is_fake": true
1415
},
1516
"source": "electron",
1617
"process": {
@@ -23,6 +24,7 @@
2324
"exit_reason": "clean-exit"
2425
},
2526
"_dd": {
26-
"format_version": 2
27+
"format_version": 2,
28+
"document_version": 1
2729
}
2830
}

schemas/rum/_view-properties-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
"type": "object",
557557
"description": "Profiling context",
558558
"allOf": [{ "$ref": "./_profiling-internal-context-schema.json" }]
559-
},
559+
}
560560
}
561561
}
562562
}

schemas/rum/process-schema.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"$ref": "_common-schema.json"
1010
},
1111
{
12-
"required": ["type", "process"],
12+
"required": ["type", "process", "_dd"],
1313
"properties": {
1414
"type": {
1515
"type": "string",
@@ -74,6 +74,20 @@
7474
}
7575
},
7676
"readOnly": true
77+
},
78+
"_dd": {
79+
"type": "object",
80+
"description": "Internal properties",
81+
"required": ["document_version"],
82+
"properties": {
83+
"document_version": {
84+
"type": "integer",
85+
"description": "Version of the update of the process event",
86+
"minimum": 0,
87+
"readOnly": true
88+
}
89+
},
90+
"readOnly": true
7791
}
7892
}
7993
}

0 commit comments

Comments
 (0)