Skip to content

Commit 5cfc038

Browse files
committed
fix(rum): use platform-agnostic description for tab; add sample event with tab.id
1 parent 736f1d9 commit 5cfc038

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

docs/plans/2026-03-03-tab-id-design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add `tab` as an optional top-level object in `_common-schema.json`, alongside ex
2121
```json
2222
"tab": {
2323
"type": "object",
24-
"description": "Browser tab properties",
24+
"description": "Tab properties",
2525
"required": ["id"],
2626
"additionalProperties": true,
2727
"properties": {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"type": "view",
3+
"date": 1591283924940,
4+
"application": {
5+
"id": "ac8218cf-498b-4d33-bd44-151095959547"
6+
},
7+
"session": {
8+
"id": "cacbf45c-3a05-48ce-b066-d76349460599",
9+
"type": "user"
10+
},
11+
"source": "browser",
12+
"view": {
13+
"id": "623d50fd-75cf-4025-97d2-e51ff94171f6",
14+
"url": "https://app.datadoghq.com/rum/explorer",
15+
"time_spent": 245512755000,
16+
"action": {
17+
"count": 0
18+
},
19+
"error": {
20+
"count": 0
21+
},
22+
"resource": {
23+
"count": 3
24+
}
25+
},
26+
"tab": {
27+
"id": "b7e2a1f4-3c8d-4e5f-9a0b-1d2e3f4a5b6c"
28+
},
29+
"_dd": {
30+
"document_version": 1,
31+
"format_version": 2
32+
}
33+
}

schemas/rum/_common-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
},
175175
"tab": {
176176
"type": "object",
177-
"description": "Browser tab properties",
177+
"description": "Tab properties",
178178
"required": ["id"],
179179
"additionalProperties": true,
180180
"properties": {

0 commit comments

Comments
 (0)