@@ -54,7 +54,7 @@ defmodule Sentry do
5454 ## Filtering Exceptions
5555
5656 If you would like to prevent certain exceptions, the :filter configuration option
57- allows you to implement the `Sentry.Filter ` behaviour. The first argument is the
57+ allows you to implement the `Sentry.EventFilter ` behaviour. The first argument is the
5858 source of the event, and the second is the exception to be sent. `Sentry.Plug`
5959 will have a source of `:plug`, and `Sentry.Logger` will have a source of `:logger`.
6060 If an exception does not come from either of those sources, the source will be nil
@@ -65,7 +65,7 @@ defmodule Sentry do
6565
6666 # sentry_event_filter.exs
6767 defmodule MyApp.SentryEventFilter do
68- @behaviour Sentry.Filter
68+ @behaviour Sentry.EventFilter
6969
7070 def exclude_exception?(:plug, %Elixir.Phoenix.Router.NoRouteError{}), do: true
7171 def exclude_exception?(_, ), do: false
@@ -84,7 +84,7 @@ defmodule Sentry do
8484 Sentry.capture_exception(other_exception, [source_name: :my_source])
8585
8686 ### Options
87- * `:event_source` - The source passed as the first argument to `Sentry.Filter .exclude_exception?/2`
87+ * `:event_source` - The source passed as the first argument to `Sentry.EventFilter .exclude_exception?/2`
8888
8989 ## Configuring The `Logger` Backend
9090
0 commit comments