• 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

GetLinkingMetadata (API del agente .NET)

Sintaxis

NewRelic.Api.Agent.NewRelic.GetLinkingMetadata();

Devuelve pares de valores principales que se pueden utilizar para vincular traza o entidad.

Requisitos

Versión del agente 8.19 o superior.

Compatible con todo tipo de aplicaciones.

Descripción

El Diccionario de pares principales de valor devueltos incluye elementos utilizados para vincular traza y entidad en el producto APM. Sólo contendrá elementos con valores significativos. Para instancia, si rastreo distribuido está deshabilitado, trace.id no se incluirá.

Valores de retorno

Dictionary <string, string>() La devolución incluye elementos utilizados para vincular traza y entidad en el producto APM.

Ejemplos

NewRelic.Api.Agent.IAgent Agent = NewRelic.Api.Agent.NewRelic.GetAgent();
var linkingMetadata = Agent.GetLinkingMetadata();
foreach (KeyValuePair<string, string> kvp in linkingMetadata)
{
Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
}
Copyright © 2024 New Relic Inc.

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