リソース属性の設定

OpenTelemetry™ Collector を展開して設定した後は、リソース属性Splunk AppDynamicsを telemetry.sdk.language でモニターされるアプリケーションと階層の名前に設定し、 属性がアプリケーションの言語に設定されていることを確認する必要があります。これにより、Splunk AppDynamicsOpenTelemetry サービスがアプリケーションから にマッピングされます。

Set service.name and service.namespace to Your Application and Tier Names

注: For applications monitored by OpenTelemetry tracers/SDKs, make sure the 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.name and service.namespace inside your application code:
    • For Node.js applications monitored by Splunk AppDynamics, the OpenTelemetry ApplicationName and TierName is derived from the ApplicationName and TierName in the Node.js require statement:
    • For Java applications monitored by Splunk AppDynamics, set the tier name (in service.name) and application name (in service.namespace) for the JVM:
      CODE
      -Dotel.resource.attributes="service.name=Shop,service.namespace=Shopping"
  • Set service.name in your OpenTelemetry otel-config.yml file (see Collector Configuration Sample) to your Splunk AppDynamics-monitored tier name(s):
    CODE
    service.name: shopping cart
  • Set service.name and service.namespace in the OTEL_RESOURCE_ATTRIBUTESenvironment variable. See OpenTelemetry Instrumentation for language-specific instructions.

アプリケーションの言語に を設定する

ほとんどの言語の SDK は、telemetry.sdk.language 属性を自動的に設定します。この属性が設定されていない場合、コントローラはアプリケーション言語を判別できない可能性があります。この言語属性を設定する場合は、「OpenTelemetry Telemetry SDK」を参照してください。