---
title: "Hourly latency of one operation over time"
method: GET
path: "/otel/operations/trend"
tags: ["OpenTelemetry"]
---

# Hourly latency of one operation over time

`GET /otel/operations/trend`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/operations/trend`
- 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

## Response `200`

Hourly series of the operation

- OperationTrendResponse: An operation's hourly series, with the deployments in the window.
  - `deployments` DeploymentMarkerResponse[], required
    - `deployment_id` integer, required
    - `environment_id` integer, required
    - `live_at` string, date-time, required
    - `slug` string, required
  - `end_time` string, date-time, required
  - `points` OperationTrendPointResponse[], required: Hours with calls, oldest first; hours without calls have no point.
    - `avg_ms` number, double, required
    - `bucket_start` string, date-time, required
    - `count` integer, required
    - `error_count` integer, required
    - `p50_ms` number, double, required
    - `p95_ms` number, double, required
    - `p99_ms` number, double, required
  - `service_name` string, required
  - `span_name` string, required
  - `start_time` string, date-time, 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.

## Other responses

- `400`: Missing operation, or a window over 30 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/trend/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)
