Skip to content

Commit ade06d6

Browse files
Add vitals to mobile profiling event
1 parent d4bffea commit ade06d6

4 files changed

Lines changed: 25 additions & 18 deletions

File tree

samples/profiling/profile-event-payload/profile-event-payload.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"long_task": {
1414
"id": ["0e6071e2-e4ae-4605-8dfe-9f3551a172f9"]
1515
},
16-
"vital": {
17-
"id": "b3f8c1a2-9d4e-4f5a-8b7c-2e1d3f4a5b6c"
18-
},
1916
"attachments": ["wall-time.json"],
2017
"start": "2025-12-02T13:32:04.886Z",
2118
"end": "2025-12-02T13:33:04.891Z",

schemas/profiling-mobile-schema.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,27 @@
33
"$id": "profiling-mobile-schema.json",
44
"title": "ProfileEvent",
55
"description": "Schema of the Mobile SDK Profile Event metadata.",
6-
"$ref": "profiling/profile-event-schema.json"
6+
"allOf": [
7+
{
8+
"$ref": "profiling/profile-event-schema.json"
9+
},
10+
{
11+
"type": "object",
12+
"properties": {
13+
"vital": {
14+
"type": "object",
15+
"description": "The RUM Vital this profile event is associated with (Android only).",
16+
"readOnly": true,
17+
"properties": {
18+
"id": {
19+
"type": "string",
20+
"description": "Unique identifier of RUM Vital in the UUID format.",
21+
"readOnly": true
22+
}
23+
},
24+
"required": ["id"]
25+
}
26+
}
27+
}
28+
]
729
}

schemas/profiling/profile-event-attributes-schema.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,6 @@
7171
}
7272
},
7373
"readOnly": true
74-
},
75-
"vital": {
76-
"type": "object",
77-
"description": "The RUM Vital this profile event is associated with.",
78-
"readOnly": true,
79-
"properties": {
80-
"id": {
81-
"type": "string",
82-
"description": "Unique identifier of RUM Vital in the UUID format.",
83-
"readOnly": true
84-
}
85-
},
86-
"required": ["id"]
8774
}
8875
}
8976
}

scripts/validate.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function validateSchemasObjectsPropertiesCase() {
2525
[`${SCHEMAS_DIRECTORY}/session-replay/common/focus-record-schema.json`, ['has_focus']],
2626
[`${SCHEMAS_DIRECTORY}/rum/resource-schema.json`, ['operationType', 'operationName']],
2727
[`${SCHEMAS_DIRECTORY}/profiling/profile-event-attributes-schema.json`, ['long_task']],
28-
[`${SCHEMAS_DIRECTORY}/profiling/profile-event-payload-schema.json`, ['wall-time.json']],
28+
[`${SCHEMAS_DIRECTORY}/profiling/profile-event-payload-schema.json`, ['wall-time.json', '_dd', 'clock_drift']],
29+
[`${SCHEMAS_DIRECTORY}/profiling/profile-event-schema.json`, ['tags_profiler']],
2930
])
3031

3132
let displayConvention = false

0 commit comments

Comments
 (0)