I am trying to enable the Browser monitoring provided by New Relic in my Rails app. I followed the steps listed in the docs - which is basically turning on the feature within the New Relic settings for the app. But not all errors are being logged within the JS Errors tab. My questions is do I need to do some changes within Rails app to include new relic agent on the page? I currently have browser_monitoring.auto_instrument: false
in my newrelic.yml
because I use the manual way of doing this for some specific pages. Is this property also responsible for doing the error monitoring?
Thanks!
Yes, the auto instrumentation is what injects NewRelic's JavaScript into your page to analyze performance and report errors. The default is true
. If you've turned it off, you'll only catch errors from pages where you're manually including it.
If you turn it back on, you can disable it on certain pages where you're doing things manually using newrelic_ignore
.