Very simple filtering module for ignoring airbrakex
errors.
It can filter error types, matching both exception type and the error message itself for the presence of the type.
Add airbrakex_ignorer
to your list of dependencies in mix.exs
:
def deps do
[
{:airbrakex_ignorer, "~> 0.1.0"}
]
end
Configure airbrakex ignore to use this package:
config :airbrakex,
#...
ignore: {AirbrakexIgnorer, :ignore?, []}
Configure airbrakex ignorer with the types you want to ignore:
config :airbrakex_ignorer,
types: [
Phoenix.Router.NoRouteError
]
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/airbrakex_ignorer.