---
title: "Get a critical path service breakdown of a trace."
method: GET
path: "/v1/tracing/traces/{traceId}/criticalPath/breakdown/service"
tags: ["traces"]
---

# Get a critical path service breakdown of a trace.

`GET /v1/tracing/traces/{traceId}/criticalPath/breakdown/service`

Get a critical path breakdown by services of the spans contributing to the critical path of a trace with the given identifier.

## Path parameters

- `traceId` string, required

## Response `200`

List of elements representing the critical path service breakdown.

- CriticalPathServiceBreakdownResponse
  - `elements` CriticalPathServiceBreakdownElementDetail[], required — List of elements representing the critical path service breakdown.
    - `service` string — The name of the service.
    - `serviceColor` string — Color hex code assigned to the service.
    - `duration` integer, required — Overall processing time in nanoseconds consumed by the spans belonging to this service in the critical path (a sum of the duration times of the spans' critical path segments).
    - `numSpans` integer, required — Number of spans that are part of this service.
    - `longestSegmentDuration` integer, required — Number of nanoseconds the longest span segment in the critical path lasted.
  - `idleTime` integer, required — Overall time in nanoseconds when no particular operation was in progress.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/versions/18a824df1e78/schema)
