Skip to content

Commit

Permalink
Add http field in Segment and Subsegment type
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanho committed Jun 2, 2023
1 parent 097e27e commit 49392ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/lib/segments/attributes/subsegment.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as http from 'http';
import { Segment, SegmentLike } from '../../aws-xray';
import IncomingRequestData from '../../middleware/incoming_request_data';

declare class Subsegment {
id: string;
Expand All @@ -12,6 +13,8 @@ declare class Subsegment {
namespace?: string;
notTraced: boolean;

http?: IncomingRequestData;

constructor(name: string);

addNewSubsegment(name: string): Subsegment;
Expand Down
1 change: 1 addition & 0 deletions packages/core/lib/segments/segment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare class Segment {
notTraced?: boolean;

additionalTraceData?: object
http?: IncomingRequestData;

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

Expand Down

0 comments on commit 49392ba

Please sign in to comment.