중요
이 API를 사용하려면 브라우저 에이전트의 Browser Pro+SPA 버전이 필요합니다.
통사론
newrelic.interaction().end()
현재 시간에서 SPA 상호 작용을 종료합니다.
요구 사항
에이전트 버전 nr-963 이상입니다.
설명
이 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 });});