disable_browser_autorum

For general information on how the Python agent API calls relate to each other, see the API guide.

newrelic.agent.disable_browser_autorum(flag=True)
Disables New Relic Browser monitoring for a web request.

Description

This call disables New Relic Browser monitoring for the page/request it is called for. This call only affects the current web request and must be called prior to the point where the Browser header/footer JavaScript are injected. For more on how the Browser JavaScript is inserted, see Install New Relic Browser.

You can also disable Browser injection by setting the newrelic.disable_browser_autorum key for the specific request in the WSGI environ dictionary passed by the WSGI server into the WSGI application being monitored.

Parameters

Parameter Description

flag

boolean

Optional. Default is True. Set to False to instead allow New Relic Browser injection.

Return value(s)

None.

Example(s)

Disabling Browser

In this example, you've upgraded the New Relic agent and you've noticed the New Relic JavaScript that's automatically injected onto the HTML page is also being injected into every iFrame that is loaded on those pages. This has caused your pageviews to increase substantially.

On those specific iFrame views, you would make this call:

newrelic.agent.disable_browser_autorum()

For more help

Recommendations for learning more: