diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index 808ae365c..9fe6a3665 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -2,4 +2,7 @@ config.dsn = ENV["SENTRY_DSN"] config.release = "lupo:" + Lupo::Application::VERSION config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s) + + # ignore 502 and 503 from Elasticsearch + config.excluded_exceptions += ['Elasticsearch::Transport::Transport::Errors::BadGateway', 'Elasticsearch::Transport::Transport::Errors::ServiceUnavailable'] end \ No newline at end of file