Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/sentry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ defmodule Dotcom.Sentry do

# Phoenix.NotAcceptableError is returned when the client requests an unsupported format, we don't need to report these
defp exclude_exception?(%Phoenix.NotAcceptableError{}), do: true
# Not found errors are rendered as 404 responses by the router and don't need to be reported
defp exclude_exception?(%DotcomWeb.NotFoundError{}), do: true
# Exclude Redis connection/disconnection from Sentry
defp exclude_exception?(%Redix.ConnectionError{}), do: true
defp exclude_exception?(_exception), do: false
Expand Down
Loading