---
title: "Which operations got slower or faster after a deployment"
method: GET
path: "/otel/operations/regressions"
tags: ["OpenTelemetry"]
---

# Which operations got slower or faster after a deployment

`GET /otel/operations/regressions`

## Request

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

## Query parameters

- `project_id` integer, required
- `deployment_id` integer, required

## Response `200`

Operations compared across the deployment

- DeploymentRegressionsResponse: The project's tracked operations compared across one deployment.
  - `after_end` string, date-time, required
  - `after_start` string, date-time, required: The first complete hour after the deployment went live.
  - `baseline_start` string, date-time, required
  - `changes` OperationChangeResponse[], required: Regressed operations first, largest change first; then improved ones. At most 50.
    - `after_hours` integer, required
    - `after_p95_ms` number, double, nullable: The median hourly p95 after.
    - `baseline_hours` integer, required
    - `baseline_p95_ms` number, double, nullable: The median hourly p95 in the week before.
    - `change` string, required: `regressed` or `improved`.
    - `change_ratio` number, double, nullable: `after / baseline - 1`: 0.4 is 40% slower, -0.3 is 30% faster.
    - `service_name` string, required
    - `span_name` string, required
  - `deployment` DeploymentMarkerResponse, required: A deployment that went live.
    - `deployment_id` integer, required
    - `environment_id` integer, required
    - `live_at` string, date-time, required
    - `slug` string, required
  - `improved` integer, required
  - `insufficient_after` integer, required: Operations with too few hours after it yet.
  - `insufficient_baseline` integer, required: Operations with too little history before the deployment.
  - `min_after_hours` integer, required: Complete hours after the deployment needed before it is judged.
  - `regressed` integer, required
  - `tracking` OperationTrackingResponse, required: Whether operations of the project are tracked, and how many did not fit.
    - `configured` boolean, required: True once the rollup job has run for the project.
    - `last_error` string, nullable
    - `last_run_at` string, date-time, nullable
    - `max_tracked_operations` integer, required: Operations kept per project and hour, those with the most total time.
    - `overflow_operations` integer, required: Operations of that hour over the cap, which have no history.
    - `reason` string, nullable: Why there is no history yet, when `configured` is false.
    - `retention_days` integer, required: Days of history kept.
    - `rolled_until` string, date-time, nullable: Hours that start before this have been rolled up.
    - `setup_path` string, nullable: The console page, relative to the project, that sets up what is missing.
    - `tracked_operations` integer, required: Operations kept in the last hour rolled up.
  - `unchanged` integer, required

## Other responses

- `400`: The deployment never went live
- `401`: Not authenticated
- `403`: Missing otel:read or project access
- `404`: No such deployment in the project
- `500`: Internal server error

## Changes

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

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/operations/regressions/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)
