File tree 2 files changed +8
-1
lines changed
packages/tracing/tests/helpers
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Thrown when the function segement (AWS::Lambda::Function) is not found in a trace.
3
+ *
4
+ * X-Ray segments are process asynchronously. They may not be available even after
5
+ * the trace has already appeared. In that case, the function segment may be missing.
6
+ * We will throw this error to notify caller.
7
+ */
1
8
export class FunctionSegmentNotDefinedError extends Error {
2
9
public constructor ( msg : string ) {
3
10
super ( msg ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ interface ParsedDocument {
19
19
name : string
20
20
id : string
21
21
start_time : number
22
- end_time : number
22
+ end_time ? : number
23
23
// This flag may be set if the segment hasn't been fully processed
24
24
// The trace may have already appeared in the `getTraceSummaries` response
25
25
// but a segment may still be in_progress
You can’t perform that action at this time.
0 commit comments