Skip to content

Commit 49392ba

Browse files
committed
Add http field in Segment and Subsegment type
1 parent 097e27e commit 49392ba

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as http from 'http';
22
import { Segment, SegmentLike } from '../../aws-xray';
3+
import IncomingRequestData from '../../middleware/incoming_request_data';
34

45
declare class Subsegment {
56
id: string;
@@ -12,6 +13,8 @@ declare class Subsegment {
1213
namespace?: string;
1314
notTraced: boolean;
1415

16+
http?: IncomingRequestData;
17+
1518
constructor(name: string);
1619

1720
addNewSubsegment(name: string): Subsegment;

packages/core/lib/segments/segment.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare class Segment {
1414
notTraced?: boolean;
1515

1616
additionalTraceData?: object
17+
http?: IncomingRequestData;
1718

1819
constructor(name: string, rootId?: string | null, parentId?: string | null);
1920

0 commit comments

Comments
 (0)