Skip to content

Commit 8bab38c

Browse files
authored
Add parent span id to RUM Resource (#283)
1 parent ca4ca9c commit 8bab38c

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

lib/cjs/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties
727727
* span identifier in decimal format
728728
*/
729729
readonly span_id?: string;
730+
/**
731+
* parent span identifier in decimal format
732+
*/
733+
readonly parent_span_id?: string;
730734
/**
731735
* trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
732736
*/

lib/esm/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties
727727
* span identifier in decimal format
728728
*/
729729
readonly span_id?: string;
730+
/**
731+
* parent span identifier in decimal format
732+
*/
733+
readonly parent_span_id?: string;
730734
/**
731735
* trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s
732736
*/

samples/rum-events/resource.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"_dd": {
4848
"format_version": 2,
4949
"span_id": "12345",
50+
"parent_span_id": "67890",
5051
"trace_id": "7890"
5152
}
5253
}

schemas/rum/resource-schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@
324324
"pattern": "^[0-9]+$",
325325
"readOnly": true
326326
},
327+
"parent_span_id": {
328+
"type": "string",
329+
"description": "parent span identifier in decimal format",
330+
"pattern": "^[0-9]+$",
331+
"readOnly": true
332+
},
327333
"trace_id": {
328334
"type": "string",
329335
"description": "trace identifier, either a 64 bit decimal number or a 128 bit hexadecimal number padded with 0s",

0 commit comments

Comments
 (0)