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

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

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.

Crea una propuesta

StartAgent (API del agente .NET)

Sintaxis

NewRelic.Api.Agent.NewRelic.StartAgent()

Inicie el agente si aún no lo ha hecho. Generalmente innecesario.

Requisitos

Versión del agente 5.0.136.0 o superior.

Compatible con todo tipo de aplicaciones.

Descripción

Inicia el agente si aún no se ha iniciado. Esta llamada suele ser innecesaria, ya que el agente se inicia automáticamente cuando llega a un método instrumentado a menos que deshabilite autoStart. Si usa SetApplicationName(), asegúrese de configurar el nombre de la aplicación before al iniciar el agente.

Sugerencia

Este método inicia el agente de forma asincrónica (es decir, no bloqueará el inicio de la aplicación) a menos que habilite syncStartup o sendDataOnExit.

Ejemplos

NewRelic.Api.Agent.NewRelic.StartAgent();
Copyright © 2024 New Relic Inc.

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