Syntax
newrelic_ignore_transaction()
Do not instrument the current transaction.
Requirements
Compatible with all agent versions.
Description
Do not generate data for this transaction. This is useful when you have transactions that are particularly slow for known reasons and you do not want them frequently generating transaction traces or skewing your site averages.
Parameters
This call does not accept any parameters.
Examples
function example() {
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
newrelic_ignore_transaction();
}
...
}
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 and and documentation.