0

I want to disable New Relic on the /admin namespace, so I'll have reports only from the user part of the app?

I'm using it on Rails with gem and heroku config

Uko
  • 13,134
  • 6
  • 58
  • 106

1 Answers1

2

You can block New Relic from instrumenting Rails controllers by calling newrelic_ignore in the controller class. You can also block individual actions by passing :only and :except options, like with Rails filters.

See the Ruby agent documentation on blocking instrumentation for details.

rkb
  • 3,442
  • 19
  • 25
  • Another way is to set a rule `rules.ignore_url_regexes` with routes you want to ignore https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration#rules-ignore_url_regexes – Milos Blasko Jun 24 '16 at 18:55