• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は参考用に提供されます。

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、 を参照してください。

問題を作成する

end (SPA API)

構文

newrelic.interaction().end()

現在の時刻でのSPAインタラクションを終了します。

要件

説明

この SPA メソッドは、現在の時点でのブラウザとの対話を終了します。それ以降のコールバックやリクエストは、SPA インタラクションの一部としては含まれません。

戻り値

このメソッドは、 interaction()によって作成されたものと同じAPIオブジェクトを返します。

router.addRoute('/profile', () => {
startSlowBackgroundAjax(); // Start work that will continue past the end of the interaction
renderProfileComponents().then(() => { // Do work that is part of the interaction
newrelic.interaction().end(); // End the interaction once the important components an the page have finished rendering
});
});
Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.