リソース属性の設定
OpenTelemetry™ Collector を展開して設定した後は、リソース属性Splunk AppDynamicsを telemetry.sdk.language でモニターされるアプリケーションと階層の名前に設定し、 属性がアプリケーションの言語に設定されていることを確認する必要があります。これにより、Splunk AppDynamicsOpenTelemetry サービスがアプリケーションから にマッピングされます。
Set service.name and service.namespace to Your Application and Tier Names
service.name and service.namespace are configured to map to the tier and application names in the Controller UI. See Attributes with Special Handling.
You have three options to set service.name and service.namespace resource attributes:
- (Recommended option) Set
service.nameandservice.namespaceinside your application code:- For Node.js applications monitored by Splunk AppDynamics, the OpenTelemetry
ApplicationNameandTierNameis derived from theApplicationNameandTierNamein the Node.jsrequirestatement: - For Java applications monitored by Splunk AppDynamics, set the tier name (in
service.name) and application name (inservice.namespace) for the JVM:CODE-Dotel.resource.attributes="service.name=Shop,service.namespace=Shopping"
- For Node.js applications monitored by Splunk AppDynamics, the OpenTelemetry
- Set
service.namein your OpenTelemetryotel-config.ymlfile (see Collector Configuration Sample) to your Splunk AppDynamics-monitored tier name(s):CODEservice.name: shopping cart - Set
service.nameandservice.namespacein theOTEL_RESOURCE_ATTRIBUTESenvironment variable. See OpenTelemetry Instrumentation for language-specific instructions.
Set telemetry.sdk.language to Your Application Language
Most language SDKs populate the attribute telemetry.sdk.language automatically. If this attribute is not set, the Controller may not able to determine the language of your application. To set this language attribute, see OpenTelemetry Telemetry SDK.
次のステップ
リソース属性を設定したら、「Splunk AppDynamicsAppDynamics for OpenTelemetry を使用したアプリケーションのインストゥルメント化™」を参照してください。
OpenTelemetry™ は The Linux Foundation® の商標です。™®