Skip to content

Commit 27c270e

Browse files
committed
include error_type in plug
1 parent e83dac4 commit 27c270e

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)