Query trace
Real-time Monitoring Service (RMS) allows you to query traces based on multi-dimension search criteria. You can query traces of different types of requests, such as HTTP, RPC, DB, MQ, and CACHE requests. You can also query traces by specifying a custom scenario tag, such as transaction number. This topic describes how to query traces in the RMS console.
Procedure
In the left-side navigation pane, click Distributed Trace > Trace Query.
On the Trace Query page, set the following parameters to specify search criteria.
The following table lists the parameters that you can use.
Parameter
Description
Local Application Name
The name of the local application. Fuzzy search is supported.
NoteLocal applications are applications on the client.
Remote Application Name
The name of the remote application. Fuzzy search is supported.
NoteRemote applications are applications on the server.
Trace ID
The unique ID of the trace. Enter a Trace ID.
Call Result
The request result. Valid values: Success or Failure.
Time Consumed Greater Than
The minimum amount of time that a request consumes, in milliseconds.
Start and End Time
The start and end points in time of requests. You can select a preset time range or customize a time range.
In the upper-right corner of the page, select a time range from the time picker. For example, you can select Latest 15 Minutes, Latest 30 Minutes, or Latest 1 Hour.
If the preset time ranges do not meet your business requirements, select the required start and end points in time in the time picker or enter required values in the field, and click OK.
Call Method
The request type. Valid values: ALL, HTTP, RPC, DB, MQ, and CACHE. More parameters are displayed if you set the Call Method parameter to one of the following values:
HTTP: The Call Method and URL parameters are displayed.
NoteThe value of URL can be up to 90 characters in length. Extra characters will be ignored due to database limits.
RPC: The Call Method and Service Name parameters are displayed.
NoteThe value of Service Name can be up to 90 characters in length. Extra characters will be ignored due to database limits.
DB: The Plug-in Type, Database, Data Source, and Data Type parameters are displayed.
MQ: The Message Type and topic parameters are displayed.
CACHE: The Cache Type and Call Method parameters are displayed.
Custom Business Tag
The custom scenario tag. You must specify a tag in the JSON format.
Click Query.
In the query result list, you can view the following information about a trace: trace ID, call time, response duration, name and IP address of the local application, and name and IP address of the remote application.
Related operations
In the query result list, click the ID of a trace to go to the details page of the trace. For more information, see View details of a trace.