Once the OpenTelemetry™ Collector is deployed and configured, you must set the resource attributes to your 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 AppDynamics.
Before You Begin
Make sure you have deployed and configured the OpenTelemetry™ Collector before configuring the attributes in the sections below.
service.namespace to Your Application and Tier Names
You have three options to set
service.namespace resource attributes:
- (Recommended option) Set
service.namespaceinside your application code:
For Node.js applications monitored by AppDynamics, the OpenTelemetry
TierNameis derived from the
TierNamein the Node.js
For Java applications monitored by AppDynamics, set the tier name (in
service.name) and application name (in
service.namespace) for the JVM:
service.namein your OpenTelemetry
otel-config.ymlfile (see Collector Configuration Sample) to your AppDynamics-monitored tier name(s):
service.name: shopping cartYML
OTEL_RESOURCE_ATTRIBUTESenvironment variable. See OpenTelemetry Instrumentation for language-specific instructions.
telemetry.sdk.language to Your Application Language
Most language SDKs populate the attribute
telemetry.sdk.language automatically. If this attribute is not set, the AppDynamics Controller may not able to determine the language of your application. To set this language attribute, see OpenTelemetry Telemetry SDK.
Once you have configured the resource attributes, see Instrument Applications with AppDynamics for OpenTelemetry™.
OpenTelemetry™ is a trademark of The Linux Foundation®.