Syntax
NewRelic.withInteractionTracing(boolean $tracingFlag)
Globally disable/enable interaction tracing.
Requirements
Agent version 5.4.0 or higher.
Description
Use withInteractionTracing()
to globally enable or disable interaction traces, which appear on the Mobile Interactions page. Ensure you call this before the New Relic agent start call.
Important
Interaction tracing will be disabled after the agent has started. Interactions for any activity or methods executed prior to starting the agent may still appear in the Interactions page.
For general info on using this API, see the Android SDK API usage guide.
Parameters
Parameter | Description |
---|---|
boolean | Required. Use |
Examples
Disable interactions
To turn off all interaction traces collected by the Android agent:
NewRelic.withInteractionTracing(false)
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.