Created
June 29, 2024 17:00
-
-
Save joshuap/f8289cb93d12fd4a82cd0dcf5de440d7 to your computer and use it in GitHub Desktop.
Ignore Solid Queue SQL queries in the honeybadger gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/honeybadger.rb | |
Honeybadger.configure do |config| | |
config.before_event do |event| | |
if event.event_type == "sql.active_record" && (event[:query] == "BEGIN" || event[:query] == "COMMIT" || event[:query]&.index("solid_queue")) | |
event.halt! | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment