You need to enable JavaScript to run this app.
Application Performance Management Plus

Application Performance Management Plus

Copy page
Download PDF
User guide
Trace analysis
Copy page
Download PDF
Trace analysis
Trace analysis uses reported span and log data to provide capabilities like trace analysis and single trace search. This facilitates troubleshooting, performance optimization, and system monitoring to improve O&M efficiency. This topic describes how to use trace analysis.​
Background​
  • Span is the fundamental unit of work in distributed tracing. A span represents a single operation within a system, such as a database query, a function execution, or a remote service call. Each span has a unique identifier with key attributes such as operation name, start time, end time, tags, and logs.​
  • Trace is a directed acyclic graph composed of multiple spans. A trace represents the complete call chain of a request in a distributed system. Each trace has a globally unique identifier, and all spans belonging to the same request are associated with this trace. The parent-child relationships between traces and spans help visualize the request's execution path, facilitating distributed tracing.​
Prerequisites​
Your application has been integrated with Server-side Monitoring and is reporting observability data normally. The integration method varies by programming language. For more details, see the integration guide.​
Limits​
To view performance or error propagation chain analysis, specify at least the span type, service name, and interface name to retrieve analysis data.​
Procedure​
Step 1: Filter trace data​
  1. Log in to the Server-side Monitoring console. In the top navigation bar, select the target project and region. ​
  1. Click Click to go to service list to go to the Service management page.​
  1. In the left navigation pane, select Service Monitoring > Trace Analysis to go to the Trace Analysis page.​
  1. Filter the trace data you need to analyze based on your needs. Multiple filtering methods are currently available.​
tip​
All filters and rules apply based on AND logic. Only data meeting all conditions will be filtered for analysis.​
  • Six types of filters are supported. Filters apply based on AND logic. Only data meeting all criteria will be returned.​
  • Some filters, such as tag filters and span attribute filters, support multiple filter rules. Multiple filter rules within the same filter apply based on AND logic. This indicates that only data that meets all filter rules will be returned.​
​
Serial number​
Filter item​
Description​
1​
workspace​
Filters data from the specified workspace.​
2​
Aggregation method​
Aggregation method for data displayed in the chart.​
  • Automatic aggregation: a dynamic aggregation method. The system automatically selects an appropriate aggregation time based on the amount of filtered data.​
  • Specified aggregation time: a static aggregation method with data displayed based on the specified aggregation time. The minimum supported interval is 30 seconds, and the maximum is 1 day.​
3​
Time range​
The time range for data filtering. Data can be refreshed manually or automatically as needed.​
  • Filter by recent: Filters trace data within the most recent time period based on the current time. For example, filter data from the past hour.​
  • Specify time range: Specify a time range to filter trace data within a certain period. For example, filter data from 2025-11-08 00:00:00 to 2025-11-10 00:00:00.​
4​
Filter by tag​
You can filter data by tag key-value pairs. Up to 20 tags can be configured. Multiple tags are applied based on AND logic. This indicates that only data associated with all specified tags will be returned.​
5​
Span attribute filtering​
Filters data based on span attribute key-value pairs. You can configure multiple span attribute rules. Multiple rules are applied based on AND logic. This indicates that only data matching all specified rules will be returned.​
6​
Manage​
Click Manage to customize the filter fields displayed in the filter panel. You can also click Restore default to reset the filter fields to the system default configuration.​
7​
Other attribute-based filters​
Associated trace filter options such as trace ID, span type, service name, and interface name. They are used for fine-grained filtering. Multiple filters apply based on AND logic. This indicates that only data that matches all filter rules will be returned.​
​
Step 2: Analyze trace data​
After the data is filtered, you can proceed with data analysis and trace tracking. Currently, span list, performance analysis, and error propagation chain analysis are provided.​
​
Root Span list
Span list
Performance analysis
Error propagation chain analysis
​
The root span list displays all root span-related traces within the current filter scope along with detailed trace information, such as trace ID, status code, start time, duration, service name, interface name, and operation. Additionally, the root span supports sorting by start time and duration, enabling you to quickly locate errors and slow queries.​
tip​
In distributed tracing, a Root Span is the root node of a complete Trace. Each Trace has exactly one Root Span, from which all child Spans originate to form a complete request tracing tree.​
​
Step 3: View single trace details​
​
Trace details
Detailed logs of traces
AI trace diagnosis
​
Click the target trace ID to go to the details page of a single trace. Switch to the Trace details tab to view the complete request trace and detailed span information for fine-grained data analysis.​
​
Serial number​
Module​
Description​
1​
Trace information​
Displays details about the current trace, such as trace ID, start time, total duration, number of applications, and number of spans.​
2​
View switch​
Three views are provided: list, topology map, and flame graph. You can select the appropriate view as needed to view span details.​
  • List: Provides comprehensive information that makes filtering and locating spans quick and convenient.​
  • Topology map: Displays trace relationships and enables quick identification of key upstream and downstream nodes.​
  • Flame graph: Visualizes performance analysis and enables in-depth analysis of function call relationships.​
3​
Span filtering​
Quick filter options. Three quick search options are available: Component label, View error Span, and keyword search.​
4​
Span view​
Span detail view. You can select an appropriate view for fault analysis or performance analysis.​
5​
Span details​
Click the target span to view its details, including basic information, attributes, resources, events, and other span information, as well as metric details related to processes, containers, and more.​
​
​
​
What to do next​
The span export feature is provided for trace lists related to AI applications. You can export span information for other in-depth analyses. For more details, see Span export.​
Last updated: 2026.10.27 10:14:23