class Bugsnag::DogStatsd::Middleware
Public Class Methods
new(bugsnag, options)
click to toggle source
# File lib/bugsnag/dogstatsd.rb, line 16 def initialize(bugsnag, options) @bugsnag = bugsnag @statsd = options.fetch(:statsd) end
Public Instance Methods
call(report)
click to toggle source
# File lib/bugsnag/dogstatsd.rb, line 21 def call(report) @statsd.increment('ruby.exception', tags: ["severity:#{report.severity}"]) @bugsnag.call(report) end