Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix typing
Browse files Browse the repository at this point in the history
daibhin committed Nov 4, 2024
1 parent 950dd6e commit aaa82a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/exception-autocapture/error-conversion.ts
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@ export interface Exception {
thread_id?: number
stacktrace?: {
frames?: StackFrame[]
type: 'raw'
}
}

@@ -108,6 +109,7 @@ function errorPropertiesFromError(error: Error, metadata?: ErrorMetadata): Error
value: exceptionMessage,
stacktrace: {
frames,
type: 'raw',
},
mechanism: {
handled,
@@ -231,7 +233,7 @@ function errorPropertiesFromObject(candidate: Record<string, unknown>, metadata?
// so that it does not appear in a users stack trace
const frames = parseStackFrames(metadata?.syntheticException, 1)
if (frames.length) {
exception.stacktrace = { frames }
exception.stacktrace = { frames, type: 'raw' }
}
}

0 comments on commit aaa82a2

Please sign in to comment.