mirror of
https://github.com/jimeh/airbrake-statsd.git
synced 2026-02-19 10:56:43 +00:00
hook into Airbreak#notify_or_ignore
This commit is contained in:
@@ -9,5 +9,13 @@ module Airbrake
|
||||
alias :notify_without_statsd :notify
|
||||
alias :notify :notify_with_statds
|
||||
|
||||
def notify_or_ignore_with_statsd(*args)
|
||||
Airbrake::Statsd.increment
|
||||
notify_or_ignore_without_statsd(*args)
|
||||
end
|
||||
|
||||
alias :notify_or_ignore_without_statsd :notify_or_ignore
|
||||
alias :notify_or_ignore :notify_or_ignore_with_statsd
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user