go.opentelemetry.io/proto/otlp

Generated code for OpenTelemetry protobuf data model


Keywords
otel, protobuf
License
Apache-2.0
Install
go get go.opentelemetry.io/proto/otlp

Documentation

opentelemetry-proto-go

Go Reference

Generated Go code for the OpenTelemetry protobuf data model.

Versioning Policy

The auto-generated Go code follows the stability guarantees as defined in maturity level.

Versioning of modules in this project will be idiomatic of a Go project using Go modules. They will use semantic import versioning. Meaning modules will comply with semver 2.0 with the following exception:

  • Packages with an experimental suffix do not comply with semver 2.0.
    • Backwards incompatible changes may be introduced to these packages between minor versions.
    • These packages are intended to be temporary. They will be deprecated and removed when the protobuf definition stabilizes or is removed. If the protobuf definition stabilizes, the package will be replaced with a stable "non-experimental" package. If the protobuf definition is removed, the package will be removed without a replacement.

Getting Started

Install the latest version in your project.

go get go.opentelemetry.io/proto/otlp@latest

Import the generated code directly in your project.

import (
	collogspb "go.opentelemetry.io/proto/otlp/collector/logs/v1"
	colmetricspb "go.opentelemetry.io/proto/otlp/collector/metrics/v1"
	coltracepb "go.opentelemetry.io/proto/otlp/collector/trace/v1"
	commonpb "go.opentelemetry.io/proto/otlp/common/v1"
	logspb "go.opentelemetry.io/proto/otlp/logs/v1"
	metricspb "go.opentelemetry.io/proto/otlp/metrics/v1"
	resourcepb "go.opentelemetry.io/proto/otlp/resource/v1"
	tracepb "go.opentelemetry.io/proto/otlp/trace/v1"
)