From 0f5179f4f1774408335ebd078af656540be473f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Mon, 6 Nov 2023 19:01:10 +0100 Subject: [PATCH] Deprecate otlpmetric (#4693) --- CHANGELOG.md | 1 + exporters/otlp/otlpmetric/doc.go | 3 +++ exporters/otlp/otlpmetric/go.mod | 1 + 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3c8e07b02c..cd94fbc8e97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Deprecate `go.opentelemetry.io/otel/trace.NewNoopTracerProvider`. Use the added `NewTracerProvider` function in `go.opentelemetry.io/otel/trace/noop` instead. (#4620) - Deprecate `go.opentelemetry.io/otel/example/view` package in favor of `go.opentelemetry.io/otel/example/prometheus`. (#4649) +- Deprecate `go.opentelemetry.io/otel/exporters/otlp/otlpmetric`. (#4693) ### Changed diff --git a/exporters/otlp/otlpmetric/doc.go b/exporters/otlp/otlpmetric/doc.go index 31831c415fe..c641071a1cd 100644 --- a/exporters/otlp/otlpmetric/doc.go +++ b/exporters/otlp/otlpmetric/doc.go @@ -17,4 +17,7 @@ // the transformed data to OTLP receivers. The Exporter is configurable to use // different Clients, each using a distinct transport protocol to communicate // to an OTLP receiving endpoint. +// +// Deprecated: Use [go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc] +// or [go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp] instead. package otlpmetric // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric" diff --git a/exporters/otlp/otlpmetric/go.mod b/exporters/otlp/otlpmetric/go.mod index 33f5411a29d..bd76e6bcc41 100644 --- a/exporters/otlp/otlpmetric/go.mod +++ b/exporters/otlp/otlpmetric/go.mod @@ -1,3 +1,4 @@ +// Deprecated: use go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc or go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp instead. module go.opentelemetry.io/otel/exporters/otlp/otlpmetric go 1.20