The distributed trace query feature provides full-link tracing capabilities for microservices architecture by collecting metadata information of inter-service calls, helping users quickly locate cross-service call issues. This feature mainly addresses the following problems:
Core values:
Tip: Query conditions can be combined for use. You can refine your query by adding multiple query conditions.
Query Condition | Description |
---|---|
TraceID | The unique identifier for the complete link, which can be used to query the specified trace. |
Service | The service or ingress gateway initiating/receiving call requests (input required). Format as <service/gateway name>.<namespace name> , e.g., bookinfo-gw.bookinfo-ns . |
Client | The client service or ingress gateway initiating the call request (input required). Format as <service/gateway name>.<namespace name> . |
Server | The server service or ingress gateway responding to the call request (input required). Format as <service/gateway name>.<namespace name> . |
API | The API added for the service in Services > API. |
Tags | You can filter the query results by inputting tags (Tag). Supported tags include tags found in the Span details. |
Span duration > | Spans that have a duration greater than or equal to input value (ms). |
Only error traces | Error Spans refer to Spans whose Tag value of error is true . |
Span kind | Root Span: Searches for root Spans initiated by the configured service. This search mode is used when the configured service is the initiator of the entire call request. Service Entry Span: Searches for the first Span generated when the configured service is called as a server. |
Max query count | The maximum number of Spans that can be queried, with a default of 200 . Tip: For performance reasons, the platform can display a maximum of 1000 Spans at a time. If the number of Spans that meet the query conditions exceeds the maximum query count, you can refine the query conditions or narrow the time range for phased queries. |
After entering the query conditions and searching, a query results area will be generated on the page.
The left side of the query results area displays a list of Spans that meet the conditions along with basic information about the Spans, including: service name, called interface or request processing method, duration, and start time.
The time-series waterfall chart on the right side of the query results area clearly displays the call relationships between Spans in a single trace. The main features of using time-series waterfall charts in trace analysis are as follows:
By clicking on the row of the Span in the time-series waterfall chart, you can expand and view detailed information about the Span, including: