Skip to content

Commit 9cc2776

Browse files
committed
fix compile error in non-plug applications. Closes #88
1 parent 6c2b2da commit 9cc2776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sentry/plug.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ defmodule Sentry.Plug do
6363
end
6464
end
6565

66-
def build_request_interface_data(%Plug.Conn{} = conn, opts) do
66+
def build_request_interface_data(%{__struct__: Plug.Conn} = conn, opts) do
6767
scrubber = Keyword.get(opts, :scrubber)
6868
request_id = Keyword.get(opts, :request_id_header) || @default_plug_request_id_header
6969

0 commit comments

Comments
 (0)