Sha256: c38d945e29a6299723336ef409b08b84bf5441ae79891efd3f1db779431b635f

Contents?: true

Size: 431 Bytes

Versions: 40

Compression:

Stored size: 431 Bytes

Contents

# Hook in the notification to merb
error_notifier = Proc.new {
  if request.exceptions #check that there's actually an exception
    # Note, this assumes we have already captured the other information such as uri and params in the MetricFrame.
    NewRelic::Agent::Instrumentation::MetricFrame.notice_error(request.exceptions.first)
  end
}
Merb::Dispatcher::DefaultException.before error_notifier
Exceptions.before error_notifier

Version data entries

40 entries across 40 versions & 3 rubygems

Version Path
newrelic_rpm-2.13.4.rum6 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.4.rum5 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.6.beta1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.4.rum4 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.5.beta4 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.5.beta3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.5.beta2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.5.beta1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.4.eum3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.4.eum2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.4.eum1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.4 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.3.beta lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.2 lib/new_relic/agent/instrumentation/merb/errors.rb
honkster-newrelic_rpm-2.13.1 lib/new_relic/agent/instrumentation/merb/errors.rb
onyx_newrelic_rpm-2.12.5 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.0.beta5 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.13.0.beta4 lib/new_relic/agent/instrumentation/merb/errors.rb