---
title: "Where the time inside one operation goes"
method: GET
path: "/otel/operations/breakdown"
tags: ["OpenTelemetry"]
---

# Where the time inside one operation goes

`GET /otel/operations/breakdown`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/operations/breakdown`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, required
- `service_name` string, required
- `span_name` string, required
- `start_time` string, date-time, nullable
- `end_time` string, date-time, nullable
- `sample` string, nullable
- `attribute` string, nullable

## Response `200`

Downstream calls by exclusive time

- OperationBreakdownResponse: Where the time of an operation goes, from a sample of its calls.
  - `attribute` string, nullable: The attribute the calls were split by, if any.
  - `by_attribute` AttributeSliceResponse[], required: Largest total time first, at most 20 values (the rest summed).
    - `avg_ms` number, double, required
    - `calls` integer, required
    - `max_ms` number, double, required
    - `share` number, double, required
    - `total_ms` number, double, required
    - `value` string, nullable: Null for calls without the attribute.
  - `end_time` string, date-time, required
  - `groups` BreakdownGroupResponse[], required: Largest exclusive time first, at most 25 (the rest summed).
    - `avg_ms` number, double, required: Exclusive time per call.
    - `calls` integer, required
    - `calls_per_instance` number, double, required: Calls per sampled call of the operation.
    - `category` string, required: `database`, `http`, `messaging`, `rpc`, `client`, `server`, `internal`, or `other` for the summed remainder.
    - `service_name` string, required: Empty for the summed remainder.
    - `share` number, double, required: `total_ms` over the operation's total time. Parallel calls can add up to more than 1.
    - `span_name` string, required
    - `total_ms` number, double, required: Exclusive time, summed over the sample.
  - `instances` integer, required: Calls of the operation found in them.
  - `max_traces` integer, required
  - `sample` string, required: `recent` or `slow`.
  - `self_ms` number, double, required: The operation's own exclusive time.
  - `self_share` number, double, required
  - `service_name` string, required
  - `slow_threshold_ms` number, double, nullable: The p95 a `slow` sample started from.
  - `span_name` string, required
  - `start_time` string, date-time, required
  - `total_ms` number, double, required
  - `traces` integer, required: Traces read; at most `max_traces`.

## Other responses

- `400`: Missing operation, unknown sample, or a window over 7 days
- `401`: Not authenticated
- `403`: Missing otel:read or project access
- `500`: Internal server error

## Changes

- **2026-11-20** `89a5fa242f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/operations/breakdown/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
