Configure Resource Attributes on your Application
After you deploy and configure the OpenTelemetry™ Collector, you must set the resource attributes to your Splunk AppDynamics-monitored application and tier names, and verify that the telemetry.sdk.language attribute is set to your application's language. This will map OpenTelemetry services from your application to Splunk AppDynamics.
Before You Begin
Make sure you have deployed and configured the OpenTelemetry™ Collector before configuring the attributes in the sections below.
service.name と service.namespace をアプリケーション名と階層名に設定します。
service.name と service.namespace がコントローラ UI の階層とアプリケーションの名前にマッピングされるように設定されていることを確認してください。「Attributes with Special Handling」を参照してください。
service.name および service.namespace リソース属性を設定する場合、3 つのオプションがあります。
- (推奨オプション)アプリケーションコード内に
service.nameおよびservice.namespaceを設定します。- Splunk AppDynamics で Node.js アプリケーションをモニターする場合、OpenTelemetry の
ApplicationNameおよびTierNameは、Node.jsrequireステートメントのApplicationNameとTierNameから派生します。 - Splunk AppDynamics で Java アプリケーションをモニターする場合、JVM の階層名(
service.name内)とアプリケーション名(service.namespace内)を設定します。CODE-Dotel.resource.attributes="service.name=Shop,service.namespace=Shopping"
- Splunk AppDynamics で Node.js アプリケーションをモニターする場合、OpenTelemetry の
- OpenTelemetry
otel-config.ymlファイル(「Collector 設定の例」を参照)で、service.nameを Splunk AppDynamics でモニターされる階層名に設定します。CODEservice.name: shopping cart OTEL_RESOURCE_ATTRIBUTES環境変数でservice.nameとservice.namespaceを設定します。言語固有の手順については、「OpenTelemetry Instrumentation」を参照してください。
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® の商標です。™®