Skip to content

Commit 7c650e5

Browse files
Merge pull request #238 from getsentry/fix-plug-bug
include error_type in Plug.Sentry
2 parents fecce82 + 27c270e commit 7c650e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sentry/plug.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ defmodule Sentry.Plug do
111111
request_id_header: unquote(request_id_header)]
112112
request = Sentry.Plug.build_request_interface_data(conn, opts)
113113
exception = Exception.normalize(kind, reason, stack)
114-
Sentry.capture_exception(exception, [stacktrace: stack, request: request, event_source: :plug])
114+
Sentry.capture_exception(exception, [stacktrace: stack, request: request,
115+
event_source: :plug, error_type: kind])
115116
end
116117
end
117118
end

0 commit comments

Comments
 (0)