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.0.beta3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.2.beta2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.2.beta lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.1.alpha lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.12.0 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.3 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.2.beta2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.2.beta lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.1 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.0.beta2 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.11.0.beta lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.10.8 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.10.6 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.10.5 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.10.4 lib/new_relic/agent/instrumentation/merb/errors.rb
newrelic_rpm-2.10.3 lib/new_relic/agent/instrumentation/merb/errors.rb