Sha256: d1d1469f226031ce03a7f0b17b60f924c4d13ccb19867e60d4024de616ffb443

Contents?: true

Size: 370 Bytes

Versions: 9

Compression:

Stored size: 370 Bytes

Contents

# Hook in the notification to merb
error_notifier = Proc.new {
  if request.exceptions #check that there's actually an exception
    NewRelic::Agent.agent.error_collector.notice_error(request.exceptions.first, request, "#{params[:controller]}/#{params[:action]}", params)
  end
}
Merb::Dispatcher::DefaultException.before error_notifier
Exceptions.before error_notifier

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
factorylabs-newrelic_rpm-2.10.2.2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.9 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.8 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.6 lib/new_relic/agent/instrumentation/merb/errors.rb
genki-newrelic_rpm-2.10.1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.5 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.9.4 lib/new_relic/agent/instrumentation/merb/errors.rb