• EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Esta tradução de máquina é fornecida para sua comodidade.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

Criar um problema

end (SPA API)

Sintaxe

newrelic.interaction().end()

Encerra a interação do SPA no momento atual.

Requisitos

Descrição

Este método SPA encerrará a interação do browser no momento. Qualquer retorno de chamada ou solicitação subsequente não será incluído como parte da interação do SPA.

Valores de retorno

Este método retorna o mesmo objeto de API criado por interaction().

Exemplos

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 Inc.

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