Queries traces by time, application name, IP address, span name, and tag.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
arms:SearchTraces | none |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
StartTime | long | Yes | The beginning of the time range to query. Unit: milliseconds. | 1595174400000 |
EndTime | long | Yes | The end of the time range to query. Unit: milliseconds. | 1595210400000 |
RegionId | string | Yes | The region ID. | cn-hangzhou |
ServiceName | string | No | The name of the application. | arms-k8s-demo-subcomponent |
OperationName | string | No | The name of the traced span. | /demo/queryNotExistDB/11 |
MinDuration | long | No | The minimum amount of time consumed by traces. Unit: milliseconds. | 2 |
Reverse | boolean | No | Specifies whether to sort the query results in chronological order or reverse chronological order. Default value:
| false |
ServiceIp | string | No | The IP address of the host where the application resides. | 172.20.XX.XX |
Pid | string | No | The application ID. | b590lhguqs@9781be0f44dXXXX |
Tag | array<object> | No | The list of tags. | |
object | No | |||
Key | string | No | The tag key. The following system preset fields are provided:
| http.status_code |
Value | string | No | The value of the tag. | 200 |
ExclusionFilters | array<object> | No | The filter conditions. | |
object | No | |||
Key | string | No | The key that is used to filter the query results. | http.status_code |
Value | string | No | The value of the key that is used to filter the query results. | 404 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4C518054-852F-4023-ABC1-4AF95FF7****",
"TraceInfos": [
{
"OperationName": "get***",
"ServiceIp": "172.20.**.**",
"Duration": 6,
"Timestamp": 1595174436993,
"ServiceName": "arms-k8s-demo-subcomponent",
"TraceID": "ac1400a115951744369937024d****"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-08 | The response structure of the API has changed | View Change Details |