open-telemetry / opentelemetry-proto

OpenTelemetry protocol (OTLP) specification and Protobuf definitions
https://opentelemetry.io/docs/specs/otlp/
Apache License 2.0
545 stars 242 forks source link
opentelemetry

OpenTelemetry Protocol (OTLP) Specification

Build Check

This repository contains the OTLP protocol specification and the corresponding Language Independent Interface Types (.proto files).

Language Independent Interface Types

The proto files can be consumed as GIT submodules or copied and built directly in the consumer project.

The compiled files are published to central repositories (Maven, ...) from OpenTelemetry client libraries.

See contribution guidelines if you would like to make any changes.

OTLP/JSON

See additional requirements for OTLP/JSON wire representation here.

Generate gRPC Client Libraries

To generate the raw gRPC client libraries, use make gen-${LANGUAGE}. Currently supported languages are:

Maturity Level

1.0.0 and newer releases from this repository may contain unstable (alpha or beta) components as indicated by the Maturity table below.

Component Binary Protobuf Maturity JSON Maturity
common/* Stable Stable
resource/* Stable Stable
metrics/*
collector/metrics/*
Stable Stable
trace/*
collector/trace/*
Stable Stable
logs/*
collector/logs/*
Stable Stable
profiles/*
collector/profiles/*
Experimental Experimental

(See maturity-matrix.yaml for definition of maturity levels).

Stability Definition

Components marked Stable provide the following guarantees:

Note: guarantees marked [from 1.0.0] will go into effect when this repository is tagged with version number 1.0.0.

The following additive changes are allowed:

All the additive changes above must be accompanied by an explanation about how new and old senders and receivers that implement the version of the protocol before and after the change interoperate.

No guarantees are provided whatsoever about the stability of the code that is generated from the .proto files by any particular code generator.

Experiments

In some cases we are trying to experiment with different features. In this case, we recommend using an "experimental" sub-directory instead of adding them to any protocol version. These protocols should not be used, except for development/testing purposes.

Another review must be conducted for experimental protocols to join the main project.