Skip to content

Commit 892212e

Browse files
author
Alex McKenzie
committed
add the namespace property to Subsegment
In order to properly trace custom remote segments in XRay the namespace needs to be set to "remote". This allows TypeScript clients to correctly set the remote namespace on the SubSegment
1 parent 043be34 commit 892212e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/lib/segments/attributes/subsegment.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare class Subsegment {
99
subsegments?: Array<Subsegment>;
1010
parent: SegmentLike;
1111
segment: Segment;
12+
namespace?: string;
1213

1314
constructor(name: string);
1415

0 commit comments

Comments
 (0)