File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,19 @@ The `ErrorTracker.Ignorer` behaviour allows you to ignore errors based on their
163163
164164When an error is ignored, its occurrences are not tracked at all. This is useful for expected errors that you don't want to store in your database.
165165
166+ For example, if you had an integration with an unreliable third-party system that was frequently timing out, you could ignore those errors like so:
167+
168+ ``` elixir
169+ defmodule MyApp .ErrorIgnores do
170+ @behaviour ErrorTracker .Ignorer
171+
172+ @impl ErrorTracker .Ignorer
173+ def ignore? (%{kind: " Elixir.UnreliableThirdParty.Error" , reason: " :timeout" } = _error , _context ) do
174+ true
175+ end
176+ end
177+ ```
178+
166179### Muting Errors
167180
168181Sometimes you may want to keep tracking error occurrences but avoid receiving notifications about them. For these cases,
You can’t perform that action at this time.
0 commit comments