diff --git a/CHANGELOG.md b/CHANGELOG.md index dbff38cfa7..e912176e56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,9 @@ and this project adheres to ### Changed +- Ignore Plug.Conn.InvalidQueryError in Sentry + [#2672](https://github.com/OpenFn/lightning/issues/2672) + ### Fixed ## [v2.10.1] - 2024-11-13 diff --git a/lib/lightning/sentry_event_filter.ex b/lib/lightning/sentry_event_filter.ex index e7852c2dc1..c004c263cb 100644 --- a/lib/lightning/sentry_event_filter.ex +++ b/lib/lightning/sentry_event_filter.ex @@ -4,12 +4,13 @@ defmodule Lightning.SentryEventFilter do @behaviour Sentry.EventFilter @ignored_exceptions [ + Phoenix.NotAcceptableError, Phoenix.Router.NoRouteError, - Plug.Parsers.RequestTooLargeError, + Plug.Conn.InvalidQueryError, Plug.Parsers.BadEncodingError, Plug.Parsers.ParseError, - Plug.Parsers.UnsupportedMediaTypeError, - Phoenix.NotAcceptableError + Plug.Parsers.RequestTooLargeError, + Plug.Parsers.UnsupportedMediaTypeError ] def exclude_exception?(%x{}, :plug) when x in @ignored_exceptions do