Skip to content

Commit 2ee4c57

Browse files
committed
Use the stacktrace passed to Sentry.Event.transform_exception/2 when calling Exception.normalize/3.
1 parent e0eb87f commit 2ee4c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sentry/event.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ defmodule Sentry.Event do
143143
@spec transform_exception(Exception.t(), keyword()) :: Event.t()
144144
def transform_exception(exception, opts) do
145145
error_type = Keyword.get(opts, :error_type) || :error
146-
normalized = Exception.normalize(:error, exception)
146+
normalized = Exception.normalize(:error, exception, Keyword.get(opts, :stacktrace, nil))
147147

148148
type =
149149
if error_type == :error do

0 commit comments

Comments
 (0)