From e0a39b8f7d2ff7d3d03b9bf1ae59c4f331e8a2ae Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Tue, 29 Aug 2023 15:02:43 -0700 Subject: [PATCH] Fix `bridge/opencensus` `NewMetricExporter` deprecation notice (#4470) * Fix bridge/opencensus NewMetricExporter dep notice * Link to NewMetricProducer * Add PR number to changelog --- CHANGELOG.md | 5 +++++ bridge/opencensus/metric.go | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b5eb947ddf..957e5b4d211 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Deprecated + +- The `NewMetricExporter` in `go.opentelemetry.io/otel/bridge/opencensus` was deprecated in `v0.35.0` (#3541). + The deprecation notice format for the function has been corrected to trigger Go documentation and build tooling. (#4470) + ### Removed - Removed the deprecated `go.opentelemetry.io/otel/exporters/jaeger` package. (#4467) diff --git a/bridge/opencensus/metric.go b/bridge/opencensus/metric.go index 870faa23670..c2e0be49052 100644 --- a/bridge/opencensus/metric.go +++ b/bridge/opencensus/metric.go @@ -70,7 +70,8 @@ type exporter struct { // NewMetricExporter returns an OpenCensus exporter that exports to an // OpenTelemetry (push) exporter. -// Deprecated: Use NewMetricProducer instead. +// +// Deprecated: Use [NewMetricProducer] instead. func NewMetricExporter(base metric.Exporter, res *resource.Resource) metricexport.Exporter { return &exporter{base: base, res: res} }