Skip to content

Commit 15fe965

Browse files
Merge pull request #266 from potatosalad/exception-normalize-fix
Use the stacktrace passed to Sentry.Event.transform_exception/2 when calling Exception.normalize/3
2 parents e0eb87f + 2ee4c57 commit 15fe965

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)