# open-telemetry/opentelemetry-specification architecture

> Architecture diagram of the GitHub repository open-telemetry/opentelemetry-specification, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/open-telemetry/opentelemetry-specification
- Repository: https://github.com/open-telemetry/opentelemetry-specification

## Overview

This repository publishes the OpenTelemetry cross-language specification; it is not an implementation runtime. Its principal use is for implementers to consult normative requirements when building compatible implementations. The tree shows distinct API, SDK, signal, and shared-concept specifications, plus a language compliance matrix. The README establishes these product roles, but no source excerpts show execution or detailed cross-spec call relationships, so the graph avoids implying a runtime pipeline.

Main entry points: [`specification/overview.md`](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/overview.md) (Specification overview), [`spec-compliance-matrix.md`](https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md) (Language compliance matrix)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Specification core"]
  node_overview["Specification overview<br/>[overview.md]"]
  node_apis["API requirements"]
  node_sdks["SDK requirements"]
end

subgraph group_shared["Shared concepts"]
  node_context["Context propagation<br/>[api-propagators.md]"]
  node_resource["Resource model<br/>[data-model.md]"]
  node_baggage["Baggage<br/>[api.md]"]
  node_semantic["Semantic conventions"]
end

subgraph group_signals["Telemetry signals"]
  node_trace["Tracing<br/>[api.md]"]
  node_metrics["Metrics<br/>[api.md]"]
  node_logs["Logs<br/>[api.md]"]
  node_profiles["Profiling<br/>[README.md]"]
end

subgraph group_protocol["Export protocols"]
  node_otlp["OTLP protocol<br/>[otlp.md]"]
  node_exporters["Signal exporters<br/>[README.md]"]
end

subgraph group_conformance["Conformance"]
  node_matrix["Language compliance matrix"]
end

node_implementer(("Implementation author"))
node_implementations["Language implementations"]

node_implementer -->|"consults requirements"| node_overview
node_overview -->|"sets expectations"| node_implementations
node_implementer -->|"checks compliance"| node_matrix

click node_overview "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/overview.md"
click node_apis "https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification"
click node_sdks "https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification"
click node_context "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/api-propagators.md"
click node_resource "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/data-model.md"
click node_baggage "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/baggage/api.md"
click node_trace "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md"
click node_metrics "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md"
click node_logs "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/api.md"
click node_profiles "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/profiles/README.md"
click node_semantic "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/semantic-conventions.md"
click node_otlp "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md"
click node_exporters "https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk_exporters/README.md"
click node_matrix "https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_overview,node_apis,node_sdks toneBlue
class node_context,node_resource,node_baggage,node_semantic toneAmber
class node_trace,node_metrics,node_logs,node_profiles toneMint
class node_otlp,node_exporters toneRose
class node_matrix,node_implementer,node_implementations toneIndigo
```

## Components

### Specification core

- [Specification overview](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/overview.md): `specification/overview.md`
- [API requirements](https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification): `specification`
- [SDK requirements](https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification): `specification`

### Shared concepts

- [Context propagation](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/context/api-propagators.md): `specification/context/api-propagators.md`
- [Resource model](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/data-model.md): `specification/resource/data-model.md`
- [Baggage](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/baggage/api.md): `specification/baggage/api.md`
- [Semantic conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/semantic-conventions.md): `specification/semantic-conventions.md`

### Telemetry signals

- [Tracing](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md): `specification/trace/api.md`
- [Metrics](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md): `specification/metrics/api.md`
- [Logs](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/api.md): `specification/logs/api.md`
- [Profiling](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/profiles/README.md): `specification/profiles/README.md`

### Export protocols

- [OTLP protocol](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md): `specification/protocol/otlp.md`
- [Signal exporters](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk_exporters/README.md): `specification/trace/sdk_exporters/README.md`

### Conformance

- [Language compliance matrix](https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md): `spec-compliance-matrix.md`

### Other components

- **Implementation author**
- **Language implementations**

## Connections

- Implementation author → Specification overview: consults requirements (evidence: `README.md`)
- Specification overview → Language implementations: sets expectations (evidence: `README.md`)
- Implementation author → Language compliance matrix: checks compliance (evidence: `README.md`)
