Skip to content

Instantly share code, notes, and snippets.

@joshuap
Created June 29, 2024 17:00
Show Gist options
  • Save joshuap/f8289cb93d12fd4a82cd0dcf5de440d7 to your computer and use it in GitHub Desktop.
Save joshuap/f8289cb93d12fd4a82cd0dcf5de440d7 to your computer and use it in GitHub Desktop.
Ignore Solid Queue SQL queries in the honeybadger gem
# 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