Method: Honeybadger::Rack::MetricsReporter#call
- Defined in:
- lib/honeybadger/rack/metrics_reporter.rb
#call(env) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/honeybadger/rack/metrics_reporter.rb', line 14 def call(env) start = Time.now track_gc? and GC::Profiler.clear status, headers, body = app.call(env) duration = (Time.now - start) * 1000 report_metrics(status, duration) [status, headers, body] end |