All Products
Search
Document Center

Managed Service for OpenTelemetry:SearchTraces

Last Updated:Mar 19, 2024

Queries traces by time, application name, IP address, span name, or tag.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
StartTimelongYes

The timestamp of the start time of the time range to query. The timestamp is accurate to milliseconds.

1575561600000
EndTimelongYes

The timestamp of the end time of the time range to query. The timestamp is accurate to milliseconds.

1575622455686
RegionIdstringYes

The ID of the region.

cn-beijing
ServiceNamestringNo

The name of the application.

service 1
OperationNamestringNo

The name of the span.

/api
MinDurationlongNo

The time more than which is used to call the trace. Unit: milliseconds. For example, a value of 100 specifies to return the traces that more than 100 milliseconds are used to call.

1000
AppTypestringNo

The type of the application. You can set the value to XTRACE or leave this parameter unspecified.

XTRACE
PageNumberintegerNo

The number of the page to return. For example, a value of 5 indicates page 5.

1
PageSizeintegerNo

The number of entries to return on each page.

100
ReversebooleanNo

Specifies whether to sort the query results in chronological order or reverse chronological order. Default value: false. Valid values:

  • true: reverse chronological order
  • false: chronological order
false
ServiceIpstringNo

The IP address that corresponds to the span.

10.0.0.0
Tagobject []No

The list of the tags.

KeystringNo

The key of the tag.

http.status_cod
ValuestringNo

The value of the tag.

200

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

1E2B6A4C-6B83-4062-8B6F-AEEC1F******
PageBeanobject

The information about the returned page.

PageSizeinteger

The number of entries returned per page.

100
PageNumberinteger

The page number of the returned page.

1
TotalCountlong

The total number of entries returned.

1000
TraceInfosobject []

The information about the trace.

OperationNamestring

The name of the span.

/api
ServiceIpstring

The IP address of the server where the span resides.

192.163.XXX.XXX
Durationlong

The time used to call the trace. Unit: milliseconds.

100
Timestamplong

The time when the span was generated. Unit: microseconds.

1575561600000000
ServiceNamestring

The name of the application.

service1
TraceIDstring

The ID of the trace.

1c6881aab84191a4
TagMapobject

The map of tags.

{"env":"dev"}

Examples

Sample success responses

JSONformat

{
  "RequestId": "1E2B6A4C-6B83-4062-8B6F-AEEC1F******",
  "PageBean": {
    "PageSize": 100,
    "PageNumber": 1,
    "TotalCount": 1000,
    "TraceInfos": {
      "TraceInfo": [
        {
          "OperationName": "/api",
          "ServiceIp": "192.163.XXX.XXX",
          "Duration": 100,
          "Timestamp": 1575561600000000,
          "ServiceName": "service1",
          "TraceID": "1c6881aab84191a4",
          "TagMap": {
            "env": "dev"
          }
        }
      ]
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history