Set service.nameandservice.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.name
andservice.namespace
inside your application code:- For Node.js applications monitored by Splunk AppDynamics, the OpenTelemetry
ApplicationName
andTierName
is derived from theApplicationName
andTierName
in the Node.jsrequire
statement: - For Java applications monitored by Splunk AppDynamics, set the tier name (in
service.name
) and application name (inservice.namespace
) for the JVM:-Dotel.resource.attributes="service.name=Shop,service.namespace=Shopping"
- For Node.js applications monitored by Splunk AppDynamics, the OpenTelemetry
- Set
service.name
in your OpenTelemetryotel-config.yml
file (see Collector Configuration Sample) to your Splunk AppDynamics-monitored tier name(s):service.name: shopping cart
- Set
service.name
andservice.namespace
in theOTEL_RESOURCE_ATTRIBUTES
environment variable. See OpenTelemetry Instrumentation for language-specific instructions.