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
For optional settings check the [docs](https://hexdocs.pm/sentry/readme.html).
46
-
47
24
### Setup with Plug or Phoenix
48
25
49
26
In your Plug.Router or Phoenix.Router, add the following lines:
@@ -62,7 +39,7 @@ use Sentry.Phoenix.Endpoint
62
39
63
40
More information on why this may be necessary can be found here: https://github.com/getsentry/sentry-elixir/issues/229 and https://github.com/phoenixframework/phoenix/issues/2791
64
41
65
-
### Capture All Exceptions
42
+
### Capture Crashed Process Exceptions
66
43
67
44
This library comes with an extension to capture all error messages that the Plug handler might not. This is based on the Erlang [error_logger](http://erlang.org/doc/man/error_logger.html).
68
45
@@ -83,6 +60,30 @@ def start(_type, _opts) do
83
60
end
84
61
```
85
62
63
+
### Capture Arbitrary Exceptions
64
+
65
+
Sometimes you want to capture specific exceptions. To do so, use `Sentry.capture_exception/2`.
0 commit comments