• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

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.

문제 신고

GetLinkingMetadata(.NET 에이전트 API)

통사론

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

추적 또는 엔터티를 연결하는 데 사용할 수 있는 키/값 쌍을 반환합니다.

요구 사항

에이전트 버전 8.19 이상.

모든 앱 유형과 호환됩니다.

설명

반환된 키/값 쌍의 사전에는 APM 제품의 추적 및 엔터티를 연결하는 데 사용되는 항목이 포함됩니다. 의미 있는 값을 가진 항목만 포함합니다. 예를 들어 분산 추적이 비활성화된 경우 trace.id 은 포함되지 않습니다.

반환 값

Dictionary <string, string>() 반환된 항목에는 APM 제품의 추적 및 엔터티를 연결하는 데 사용되는 항목이 포함됩니다.

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.