Module: NewRelic::Agent::Instrumentation::Roda::Ignorer
- Defined in:
- lib/new_relic/agent/instrumentation/roda/ignorer.rb
Class Method Summary collapse
Instance Method Summary collapse
- #newrelic_ignore(*routes) ⇒ Object
- #newrelic_ignore_apdex(*routes) ⇒ Object
- #newrelic_ignore_enduser(*routes) ⇒ Object
Class Method Details
.should_ignore?(app, type) ⇒ Boolean
8 9 10 11 12 13 14 |
# File 'lib/new_relic/agent/instrumentation/roda/ignorer.rb', line 8 def self.should_ignore?(app, type) return false unless app.opts.include?(:newrelic_ignores) app.opts[:newrelic_ignores][type].any? do |pattern| pattern === app.request.path_info end end |
Instance Method Details
#newrelic_ignore(*routes) ⇒ Object
16 17 18 |
# File 'lib/new_relic/agent/instrumentation/roda/ignorer.rb', line 16 def newrelic_ignore(*routes) set_newrelic_ignore(:routes, *routes) end |
#newrelic_ignore_apdex(*routes) ⇒ Object
20 21 22 |
# File 'lib/new_relic/agent/instrumentation/roda/ignorer.rb', line 20 def newrelic_ignore_apdex(*routes) set_newrelic_ignore(:apdex, *routes) end |
#newrelic_ignore_enduser(*routes) ⇒ Object
24 25 26 |
# File 'lib/new_relic/agent/instrumentation/roda/ignorer.rb', line 24 def newrelic_ignore_enduser(*routes) set_newrelic_ignore(:enduser, *routes) end |