Skip to content

Commit

Permalink
Merge branch 'main' into feat/deadmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 8, 2024
2 parents ae17c10 + 921f5cf commit 8d7c417
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.181.0 - 2024-11-05

- chore: add stack type (#1511)

## 1.180.1 - 2024-11-01

- fix: dead click fixes from watching in prod (#1508)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog-js",
"version": "1.180.1",
"version": "1.181.0",
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
"repository": "https://github.com/PostHog/posthog-js",
"author": "[email protected]",
Expand Down
6 changes: 4 additions & 2 deletions src/extensions/exception-autocapture/error-conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface Exception {
thread_id?: number
stacktrace?: {
frames?: StackFrame[]
type: 'raw'
}
}

Expand Down Expand Up @@ -108,6 +109,7 @@ function errorPropertiesFromError(error: Error, metadata?: ErrorMetadata): Error
value: exceptionMessage,
stacktrace: {
frames,
type: 'raw',
},
mechanism: {
handled,
Expand Down Expand Up @@ -162,7 +164,7 @@ function errorPropertiesFromString(candidate: string, metadata?: ErrorMetadata):
// 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' }
}
}

Expand Down Expand Up @@ -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' }
}
}

Expand Down

0 comments on commit 8d7c417

Please sign in to comment.