When the calls between enterprise microservices are complex, APM Agents sample some requests, and intercept corresponding requests and subsequent call information. For example, in the scenario where service A calls service B and then calls service C, after service A receives a request, APM determines whether to trace the request based on the intelligent sampling algorithm.
APM uses the intelligent sampling algorithm to determine whether to trace requests.
The advantage of the preceding algorithm is that once the trace information is generated, the link is complete, helping you make correct decisions. If a large number of URLs are called, abnormal requests may fail to be collected. In this case, you can collect metrics to locate system exceptions.
This function is used to search for span information, that is, the root event of a node. A trace can be found in multiple environments. For example, in the scenario where service A calls service B and then calls service C, the same trace may be found from services A, B, and C.
on the left and choose Management & Deployment > Application Performance Management.
Search Criterion | Description | Mandatory |
|---|---|---|
Application | Application to which the trace belongs. | Yes |
Region | Region where the trace is located. | Yes |
Component | Component to which the trace belongs. | No |
Environment | Environment to which the trace belongs. | No |
Instance | Instance to which the trace belongs. | No |
URL | Trace URL, which can be a REST URL or real URL. A REST URL contains a variable name, for example, /apm/get/{id}. A real URL indicates an actual URL. | No |
Exact Search | Whether to perform exact match on URLs. If this option is selected, exact match is performed. If this option is not selected, fuzzy match is performed. | No |
Call Method | HTTP method of the trace. | No |
Status Code | HTTP status code returned by the trace. | No |
Response Time | Response time range of the trace. You can specify the minimum and maximum response time to search for the trace or leave them empty. | No |
Exception or Not | Whether to filter the traces that are regarded as exceptions. | No |
Trace ID | If you specify this parameter, other search criteria become invalid and the search will be performed based on the trace ID you specify. | No |
Custom Parameter |
For details about how to configure URL monitoring, see Configuring the URL Monitoring Item. | No |
Global Trace ID | Global ID of a trace. If you specify this parameter, other search criteria become invalid and the search will be performed based on the trace ID you specify. | No |
Application Code | If you have configured Service Code Length, Key for Service Code Interception, and Normal Service Code, corresponding application codes will be collected. You can search information based on application codes. Generally, the value of Application Code is the same as the value of Normal Service Code. For details about how to configure URL monitoring, see Configuring the URL Monitoring Item. | No |
is displayed. Click Response Time again. Traces are sorted by response time in ascending order, and
is displayed. Click Response Time for the third time. The trace list is restored to the initial state and
is displayed.You can also click a specific URL on the monitoring item view page, for example, the table view of the URL monitoring item. In this way, you can quickly search for required trace information based on preset search criteria.
Viewing Basic Information About the Trace Filtered Based on the Search Criteria
In the displayed trace list, click
next to the target trace to view its basic information, as shown in the following figure.
Figure 1 Basic information about a trace

Parameter description:
Viewing the Complete Information About the Trace, Including Local Method Stacks and Remote Call Relationships
Click the name of a trace to view its details, as shown in the following figure.
Figure 2 Call relationship

Parameter description:
to view the call parameters.Figure 3 Hiding the time sequence diagram

You can also click Expand.
to download the sequence diagram.Figure 4 Depth


Agent Type or Connected Website/App | Display Content |
|---|---|
Web | WEB |
WE_CHAT | |
Baidu | BAIDU |
Alipay | ALIPAY |
DingTalk | DING_TALK |
Mobile app (Android) | ANDROID-APP |
Mobile app (iOS) | IOS-APP |
Mobile app (HarmonyOS) | HARMONY-APP |
Others | user |
Figure 5 Duration
