Created
July 9, 2025 20:07
-
-
Save stympy/576a4b06a3c47b60fb503b88d21c453f to your computer and use it in GitHub Desktop.
Log only slow requests
This file contains hidden or 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
Honeybadger.configure do |config| | |
config.before_event do |event| | |
event.halt! unless event.event_type == "process_action.action_controller" | |
event.halt! unless event[:duration] > 1.0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment