Skip to content

Commit

Permalink
Ignore Plug.Conn.InvalidQueryError (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartc authored Nov 14, 2024
1 parent e63ea39 commit ccad141
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions lib/lightning/sentry_event_filter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccad141

Please sign in to comment.