All Products
Search
Document Center

Application Real-Time Monitoring Service:Span attributes and resources for the 4.x agent

Last Updated:Mar 11, 2026

The Application Real-Time Monitoring Service (ARMS) 4.x agent captures span attributes and resources for each instrumented framework. By default, the agent records a subset of the attributes defined in the OpenTelemetry Semantic Conventions to minimize data volume.

To record the full set of OpenTelemetry-standard attributes, enable the Record OTel Spec conventional attributes switch on the Custom Configuration page.

The following tables list all attributes and resources the ARMS 4.x agent attaches to spans, organized by framework.

Common span attributes

These attributes appear on all spans regardless of framework.

AttributeDescriptionExampleNotes
rpc.typeNumeric call type of the span.0, 40, 60Internal use. Subject to change.
serviceTypeNumeric service type of the span.1000, 1010Internal use. Subject to change.
ali.trace.flagAlibaba Cloud observability product that collected the trace. Valid values: arms (ARMS), x-trace (Managed Service for OpenTelemetry).armsInternal use. Subject to change.
component.nameFramework or component that produced the span.mysql, httpFor all valid values, see Application Monitoring metrics.
hasInternalSpanWhether the span contains a child span with spanKind set to Internal.1Present only on LocalRootSpan.
otel.scope.nameInstrumentation plugin that generated the span.io.opentelemetry.jdbc-
otel.scope.versionVersion of the instrumentation plugin.1.28.0-SNAPSHOT-
root.service.idARMS application ID of the first service in the trace.aokcd***@b57c445******-
sample.service.idARMS application ID of the service that made the sampling decision.aokcd***@b57c445******Not always the entry service. For details, see Trace sampling modes (for agent versions 3.2.8 and later).
sample.reasonSampling policy that matched when the sampling decision was made.s4For details, see Sampling tags.
ppidARMS application ID of the upstream (caller) service.aokcd***@b57c445******-
thread.nameName of the thread that executed the operation.http-nio-8080-exec-162-
thread.idID of the thread that executed the operation.12783-
trace.protocol.typeTrace context propagation protocol.EagleEye, W3CPresent only on LocalRootSpan.

Common resources

Resources describe the process or host that produced the span. They remain constant for the lifetime of the agent.

ResourceDescriptionExampleNotes
host.nameHostname of the machine running the application.mall-gateway-54c647a51d-db78aAdded in agent version 4.5.0.
agentVersionARMS agent version.4.5.0_3d5f5f7-
acs.arms.service.idARMS internal service ID.gauui7wh2@8a8763fbd23c898cd52***Internal use. Subject to change.
acs.arms.workspaceARMS workspace name.default-cms-1324351***-cn-hangzhouInternal use. Subject to change.
arms.appIdARMS application ID.gauui7wh2@8a8763fbd23c898cd52***Internal use. Subject to change.
clusterIdContainer Service for Kubernetes (ACK) cluster ID.c98cd52967df89a8e9***Kubernetes only. Read from the KUBERNETES_CLUSTER_ID environment variable.
ipv4IP address of the application.127.0.0.1-
namespaceKubernetes namespace.defaultKubernetes only. Read from the KUBERNETES_POD_NAMESPACE environment variable.
workloadKindKubernetes workload type.DeploymentKubernetes only. Read from the ARMS_WORKLOADKIND environment variable.
workloadNameKubernetes workload name.mall-gatewayKubernetes only. Read from the ARMS_WORKLOADNAME environment variable.

HTTP span attributes

Common

AttributeDescriptionExample
http.methodHTTP request method.GET, POST
http.status_codeHTTP response status code.200, 404, 500
statusConverged HTTP status code. Individual 4xx and 5xx codes are grouped into 4xx and 5xx.200, 4xx, 5xx

Server span

AttributeDescriptionExample
http.pathActual URL path of the incoming request./api/v1/user
http.routeRoute template registered by the framework./api/v1/{userId}
http.paramsQuery string (the portion of the URL after ?).userId=123

Note: http.route and http.path differ when a framework uses path parameters. For example, if a Spring MVC controller declares the path /api/v1/{userId}, http.route records the template /api/v1/{userId} while http.path records the resolved path such as /api/v1/42.

Client span

AttributeDescriptionExample
destIdHost and port of the downstream service.127.0.0.1
endpointURL path of the outgoing request./api/v1/user

RPC span attributes

AttributeDescriptionExample
rpc.systemRPC framework.Dubbo, gRPC
rpc.serviceFully qualified service name.com.test.TestService
rpc.methodMethod name.sayHello
destIdAddress of the remote peer.127.0.0.1:20880

Scheduled task span attributes

AttributeDescriptionExample
job.systemScheduling framework.SchedulerX, XXLJob
job.idTask ID.2847
job.nameTask name.testJob
job.result.statusExecution result.success

Messaging span attributes

Common

AttributeDescriptionExample
messaging.systemMessaging framework.RocketMQ, Kafka
messaging.operationAction performed on the message.publish, receive, process
messaging.message.payload_size_bytesMessage body size in bytes.137
messaging.destination.nameTopic name.user_order
destIdAddress of the message broker.rmq-********-vpc.cn-beijing.rmq.aliyuncs.com:8080
endpointBroker address combined with the topic, in the format ${destId}@${messaging.destination.name}.rmq-********-vpc.cn-beijing.rmq.aliyuncs.com:8080@user_order

RocketMQ

AttributeDescriptionExample
messaging.consume.delay_msConsumption delay in milliseconds.128

Kafka

AttributeDescriptionExample
messaging.kafka.destination.partitionPartition that contains the message.5
messaging.kafka.message.offsetOffset of the message within the partition.42
messaging.kafka.message.keyMessage key.mykey

Database and NoSQL span attributes

Common

AttributeDescriptionExample
db.nameDatabase name, parsed from the connection string. Empty if the connection string does not include a database name.test
net.peer.nameHost and port from the database connection string.*****.mysql.rds.aliyuncs.com:3306
sqlDatabase statement. Parameterized values are replaced with ?.SELECT * FROM user WHERE user_id=?
db.statement.id16-character encoded ID of the database statement.5a620e8cf06156a5
opTypeOperation type.SELECT
response.sizeResponse size in bytes.54

Legacy attributes

The following attributes are redundant and kept only for backward compatibility. They will be removed in a future release.

AttributeDescriptionEquivalent
destIdDatabase name.Same as db.name.
endpointDatabase connection string.Same as net.peer.name.
out.idsDatabase connection string.Same as net.peer.name.

MongoDB

AttributeDescriptionExample
db.mongodb.collectionTarget collection name.user

Redis

AttributeDescriptionExample
redis.command.keyKey accessed by the command.key