---
title: "List Metrics"
method: GET
path: "/spans/{span_id}/metrics"
tags: ["span metrics"]
---

# List Metrics

`GET /spans/{span_id}/metrics`

List metrics for a span

## Path parameters

- `span_id` string, uuid, required — The id of the span to list metrics for

## Query parameters

- `offset` integer — The offset to start the list from
- `limit` integer — The number of metrics to return

## Response `200`

Successful Response

- PaginatedResponseListSpanMetricsResponse
  - `meta` Meta, required
    - `total_count` integer, required — Total number of items in the collection
  - `data` ListSpanMetricsResponse[], required — List of items returned in the response
    - `dimension` string, required — The dimension of the metric
    - `value` number, required — The value of the metric
    - `comment` string, nullable — A comment about the metric, e.g. a description of the metric
    - `id` string, uuid, required
    - `span_id` string, uuid, required
    - `created_at` string, date-time, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required (out of credits)
- `404` — Not Found
- `422` — Request Validation Error

---

[API](https://skmtc.dev/opper/apis/opper-api-v2.md) · [All operations](https://skmtc.dev/opper/apis/opper-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opper/opper-api-v2/revisions/d3ccdaa15678/schema)
