構文
newrelic.interaction().ignore()
他の SPA の save() 呼び出しをオーバーライドし、インタラクションを無視して、保存や New Relic への送信を行いません。
要件
エージェントのバージョン nr-963 以上。
説明
この SPA メソッドでは、インタラクションが無視されます。保存や New Relic への送信は行われません。このメソッドは、 save()
の前または後の呼び出しを上書きします。
戻り値
このメソッドは、 interaction()
で作成したものと同じ API オブジェクトを返します。
例
router.addRoute('/uninteresting-route', () => { newrelic.interaction() // Get handle to current interaction. .ignore() // Ignore this interaction to ensure it will not be saved. renderUninterestingRoute() // Render route.})