• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

영문본과 번역본이 일치하지 않는 경우 영문본이 우선합니다. 보다 자세한 내용은 이 페이지를 방문하시기 바랍니다.

문제 신고

end (SPA API)

통사론

newrelic.interaction().end()

현재 시간에서 SPA 상호 작용을 종료합니다.

요구 사항

설명

이 SPA 방식은 현재 시점에서 브라우저 세대를 종료합니다. 이 메서드가 호출된 후에 시작되는 모든 후속 네트워크 requests 현재 SPA 클래스의 일부로 포함되지 않습니다. SPA v2.1 이상에서는 이 방법을 사용하여 5초 창 동안 긴 작업을 모니터링하는 보류 상태의 상호작용을 종료할 수도 있습니다.

반환 값

이 메서드는 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 © 2025 New Relic Inc.

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