Queries all span names in a specified region or all span names of a microservice.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListSpanNames

The operation that you want to perform. Set the value to ListSpanNames.

RegionId String Yes cn-beijing

The ID of the region.

ServiceName String No service 1

The name of the application.

StartTime Long No 1575561600000

The beginning of the time range to query. Unit: milliseconds.

EndTime Long No 1575622455686

The end of the time range to query. Unit: milliseconds.

Response parameters

Parameter Type Example Description
RequestId String 1E2B6A4C-6B83-4062-8B6F-AEEC1FC47DED

The ID of the request.

SpanNames Array of String {"SpanName":["rpc0","rpc1.1","rpc1.1.1"]}

The span names.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListSpanNames
&RegionId=cn-beijing
&ServiceName=service 1
&StartTime=1575561600000
&EndTime=1575622455686
&<Common request parameters>

Sample responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListSpanNamesResponse> 
  <SpanNames> 
    <SpanName>rpc0</SpanName>  
    <SpanName>rpc1.1</SpanName>  
    <SpanName>rpc1.1.1</SpanName> 
  </SpanNames>  
  <RequestId>79C84C64-9951-477E-96F3-7FA44128C601</RequestId> 
</ListSpanNamesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "SpanNames" : {
    "SpanName" : [ "rpc0", "rpc1.1", "rpc1.1.1" ]
  },
  "RequestId" : "79C84C64-9951-477E-96F3-7FA44128C601"
}

Error codes

For a list of error codes, visit the API Error Center.