All Products
Search
Document Center

Application Real-Time Monitoring Service:GetMultipleTrace

Last Updated:Oct 27, 2026

Retrieves the details of multiple traces.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

arms:GetMultipleTrace

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

TraceIDs

array

Yes

The list of trace IDs.

ac1400a115951745017447033d****

string

No

The trace ID. You must specify at least one and at most nine trace IDs. You can obtain the trace IDs on the Trace Query page in the ARMS console.

ac1400a115951745017447033d****

StartTime

integer

Yes

The timestamp when the trace starts, in milliseconds.

1657692507000

EndTime

integer

Yes

The timestamp when the trace ends, in milliseconds.

1663999380000

PageNumber

integer

No

The page number. Pages start from 1.

1

PageSize

integer

No

The number of entries per page. Maximum value: 1000.

10

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

2983BEF7-4A0D-47A2-94A2-8E9C5E63****

MultiCallChainInfos

array<object>

The information about multiple traces.

array<object>

TraceID

string

The trace ID.

ac1400a115951745017447033d****

Spans

array<object>

The trace details.

array<object>

SpanId

string

The span ID.

1234

OperationName

string

The name of the instrumented operation.

/demo/queryNotExistDB/11

ResultCode

string

The return code.

1

Timestamp

integer

The timestamp.

1595174501747

RpcType

integer

The RPC type. Valid values:

  • -2: front

  • -3: app

  • 0: http

  • 25: http_client

  • 1: hsf_client

  • 2: hsf

  • 40: local

  • 41: async

  • 52: DB2

  • 53: Informix

  • 54: SequoiaDB

  • 55: Gbase

  • 56: GaussDB

  • 57: KingBase

  • 58: infuxdb

  • 59: clickhouse

  • 60: mysql

  • 61: mysql

  • 62: oracle

  • 63: postgresql

  • 64: mongodb

  • 65: ppas

  • 66: sqlserver

  • 67: mariadb

  • 68: dmdb

  • 69: oceanbase

  • 70: redis

  • 71: memcached

  • 72: elasticsearch

  • 73: kudu

  • 4: tddl

  • 5: tair

  • 13: mq_client

  • 252: mq

  • 23: kafka_client

  • 256: kafka

  • 3: notify_client

  • 254: notify

  • 7: dubbo_client

  • 8: dubbo

  • 11: dsf_client

  • 12: dsf

  • 9: grpc

  • 10: grpc_client

  • 16: thrift

  • 17: thrift_client

  • 18: sofa

  • 19: sofa_client

  • -1: unknown

  • 98: user_method

  • 100: root

  • 101: client

  • 102: server

  • 103: producer

  • 104: consumer

  • 105: db

  • 106: xtrace_other

  • 1301: schedulerx

  • 1302: XXL_Job

  • 1303: Spring_Scheduled

  • 1304: Quartz

  • 1305: ElasticJob

  • 1308: Jdk_Timer

0

ServiceIp

string

The IP address of the machine where the application is deployed.

172.20.XX.XX

HaveStack

boolean

Specifies whether a method stack is available. Valid values:

  • true: A method stack is available.

  • false: No method stack is available.

true

ParentSpanId

string

The parent span ID.

18

Duration

integer

The duration of the span, in milliseconds.

11

RpcId

string

RPC ID

0.1

ServiceName

string

The application name.

arms-k8s-demo-subcomponent

TraceID

string

The trace ID.

ac1400a115951745017447033d****

TagEntryList

array<object>

The list of tags for the span.

object

Key

string

The key of the tag.

http.status.code

Value

string

The value of the tag.

200

LogEventList

array<object>

The log events in the span.

array<object>

Timestamp

integer

The timestamp when the log is generated.

1595174501747

TagEntryList

array<object>

The list of tags for the span.

object

Key

string

The key of the tag.

http.status.code

Value

string

The value of the tag.

200

Examples

Success response

JSON format

{
  "RequestId": "2983BEF7-4A0D-47A2-94A2-8E9C5E63****",
  "MultiCallChainInfos": [
    {
      "TraceID": "ac1400a115951745017447033d****",
      "Spans": [
        {
          "SpanId": "1234",
          "OperationName": "/demo/queryNotExistDB/11",
          "ResultCode": "1",
          "Timestamp": 1595174501747,
          "RpcType": 0,
          "ServiceIp": "172.20.XX.XX",
          "HaveStack": true,
          "ParentSpanId": "18",
          "Duration": 11,
          "RpcId": "0.1",
          "ServiceName": "arms-k8s-demo-subcomponent",
          "TraceID": "ac1400a115951745017447033d****",
          "TagEntryList": [
            {
              "Key": "http.status.code",
              "Value": "200"
            }
          ],
          "LogEventList": [
            {
              "Timestamp": 1595174501747,
              "TagEntryList": [
                {
                  "Key": "http.status.code",
                  "Value": "200"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.