What is the best way to send errors from clockwork to Airbrake?
Asked
Active
Viewed 222 times
2 Answers
2
The airbrake library has an API to notify their service directly without raising an exception. Their GitHub has a ton of documentation on this.
You can do something like this:
Airbrake.notify("Opps!")

Leo Correa
- 19,131
- 2
- 53
- 71
1
Just add the following to your clockwork definition:
module Clockwork
error_handler do |error|
Airbrake.notify_or_ignore(error)
end
# existing configuration
end

spickermann
- 100,941
- 9
- 101
- 131