• EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Te ofrecemos esta traducción automática para facilitar la lectura.

En caso de que haya discrepancias entre la versión en inglés y la versión traducida, se entiende que prevalece la versión en inglés. Visita esta página para obtener más información.

Crea una propuesta

end (SPA API)

Sintaxis

newrelic.interaction().end()

Finaliza la interacción SPA en el momento actual.

Requisitos

Descripción

Este método SPA finalizará la interacción browser en el momento actual. Cualquier devolución de llamada o solicitud posterior no se incluirá como parte de la interacción del SPA.

Valores de retorno

Este método devuelve el mismo objeto API creado por interaction().

Ejemplos

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.