v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
traces

Get a critical path of a trace.

Get a list of span segments composing the critical path of the trace. A span segment represents the processing time that was consumed within the span itself and does not incorporate the processing time of its children. The critical path is the sequence of span segments that contribute to the total trace duration. An increase of the processing time of any segment from the critical path would result in an increase of the total trace processing time.

get/v1/tracing/traces/{traceId}/criticalPath

Path parameters

traceIdstring required

Identifier of the trace.

Query parameters

limitinteger

The maximum number of results to fetch.

tokenstring

Continuation token to get the next page of results. A page object with the next continuation token is returned in the response body. Subsequent GET requests should specify the continuation token to get the next page of results. token is set to null when no more pages are left.

Response

List of span segments composing the critical path.

nextstring

Next continuation token.

Example response

{
  "segments": [
    {
      "spanId": "00000000000120CB",
      "service": "user-service",
      "serviceColor": "#fa41c6",
      "startOffset": 311285715,
      "duration": 12957153,
      "fraction": 0.4
    }
  ],
  "next": "Mi93V0ZqTTBzaW89"
}