You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/sentry/plug.ex
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,29 +33,40 @@ defmodule Sentry.Plug do
33
33
34
34
use Sentry.Plug, scrubber: {MyModule, :scrub_params}
35
35
36
-
*Please Note*: If your are sending large files you will want to scrub them out.
36
+
*Please Note*: If you are sending large files you will want to scrub them out.
37
37
38
38
### Headers Scrubber
39
39
40
40
By default we will scrub Authorization and Authentication headers from all requests before sending them.
41
41
42
+
### Including Request Identifiers
43
+
44
+
If you're using Phoenix, Plug.RequestId, or another method to set a request ID response header, and would like to include that information with errors reported by Sentry.Plug, the `:request_id_header` option allows you to set which header key Sentry should check. It will default to "x-request-id", which Plug.RequestId (and therefore Phoenix) also default to.
45
+
46
+
use Sentry.Plug, request_id_header: "application-request-id"
0 commit comments