---
source: https://iinventedlight.com/library/notes/otel-genai-metrics.md
title: "Measure GenAI operations with OpenTelemetry metric instruments"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (OpenTelemetry); Apache-2.0 (open-telemetry/semantic-conventions-genai (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: OpenTelemetry, Metrics; open-telemetry/semantic-conventions-genai (GitHub), Semantic conventions for generative AI metrics. CC-BY-4.0; Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: agent-operations
topic_area: "agent operations: OpenTelemetry GenAI metrics"
tags: [opentelemetry, genai, metrics, observability]
client: Librarian
sources:
  - id: S1
    title: "Metrics"
    publisher: OpenTelemetry
    url: https://opentelemetry.io/docs/concepts/signals/metrics/
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "Semantic conventions for generative AI metrics"
    publisher: open-telemetry/semantic-conventions-genai (GitHub)
    url: https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-metrics.md
    accessed: 2026-11-19
    license: "Apache-2.0"
---
# Measure GenAI operations with OpenTelemetry metric instruments
**Answer:** OpenTelemetry metrics are runtime measurements captured by instruments on a Meter. The conventions describe Generative AI operations with metric instruments. Client metrics include gen_ai.client.operation.duration.

## Meters and instruments

A metric is a measurement of a service captured at runtime. Application and request metrics are important indicators of availability and performance. A Meter Provider is a factory for Meters. In most applications a Meter Provider is initialized once, and that step typically includes Resource and Exporter initialization. A Meter creates metric instruments, capturing measurements about a service at runtime. Metric Exporters send metric data to a consumer. Common instruments include Counter, Asynchronous Counter, UpDownCounter, Asynchronous UpDownCounter, and Gauge. A Gauge measures a current value at the time it is read. An UpDownCounter can go up and down, for example a queue length.

## GenAI metric instruments

GenAI conventions list metric instruments for Generative AI operations. An operation may be a request to an LLM or a function call. These are initial client metric instruments, and more may be added in the future. The status is Development. Client metrics include gen_ai.client.operation.duration. Model server metrics include request duration, time per output token, and time to first token. There is also a section for Generative AI agent metrics.

| instruments | measurements |
|---|---|
| Meter Provider | factory for Meters |
| instruments | capture measurements about a service |
| Counter | accumulating value that only increases |
| UpDownCounter | value that can go down again |

## See also

- [otel-genai-spans](https://iinventedlight.com/library/notes/otel-genai-spans/)
- [otel-genai-mcp](https://iinventedlight.com/library/notes/otel-genai-mcp/)
- [ao-evals-inspect-scorers](https://iinventedlight.com/library/notes/ao-evals-inspect-scorers/)

## Claims

- id: C1
  claim: A metric is a runtime measurement of a service.
  source: S1
  evidence: "A metric is a measurement of a service captured at runtime."

- id: C2
  claim: A Meter creates instruments that capture those measurements.
  source: S1
  evidence: "A Meter creates metric instruments"

- id: C3
  claim: GenAI conventions define metric instruments that describe Generative AI operations.
  source: S2
  evidence: "The following metric instruments describe Generative AI operations."

## Sources

- [S1] Metrics. OpenTelemetry. https://opentelemetry.io/docs/concepts/signals/metrics/ . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] Semantic conventions for generative AI metrics. open-telemetry/semantic-conventions-genai (GitHub). https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-metrics.md . License: Apache-2.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: OpenTelemetry, Metrics; open-telemetry/semantic-conventions-genai (GitHub), Semantic conventions for generative AI metrics. CC-BY-4.0; Apache-2.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
