mirror of
https://github.com/jimeh/airbrake-statsd.git
synced 2026-02-19 10:56:43 +00:00
hook into the airbrake gem in a cleaner and simpler way
This commit is contained in:
@@ -1,21 +1,15 @@
|
||||
module Airbrake
|
||||
class << self
|
||||
|
||||
def notify_with_statds(*args)
|
||||
private
|
||||
|
||||
def send_notice_with_statsd(*args)
|
||||
Airbrake::Statsd.increment
|
||||
notify_without_statsd(*args)
|
||||
send_notice_without_statsd(*args)
|
||||
end
|
||||
|
||||
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
|
||||
alias :send_notice_without_statsd :send_notice
|
||||
alias :send_notice :send_notice_with_statsd
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user