• 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

GetLinkingMetadata (API do agente .NET)

Sintaxe

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

Retorna pares de valores principais que podem ser usados para vincular rastreamento ou entidade.

Requisitos

Versão do agente 8.19 ou superior.

Compatível com todos os tipos de aplicativos.

Descrição

O Dicionário de pares de valores principais retornados inclui itens usados para vincular rastreamento e entidade no produto APM. Ele conterá apenas itens com valores significativos. Por exemplo, se distributed tracing estiver desabilitado, trace.id não será incluído.

Valores de retorno

Dictionary <string, string>() retornado inclui itens usados para vincular rastreamento e entidade no produto APM.

Exemplos

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.