From f52468b1b2c3d9bd6a71a203e1f0e99bc1b8eac3 Mon Sep 17 00:00:00 2001 From: Chris Kleinknecht Date: Sat, 14 Mar 2020 16:11:28 -0700 Subject: [PATCH] Fix versionchanged doc from #466 (#489) --- opentelemetry-api/src/opentelemetry/metrics/__init__.py | 6 +++++- opentelemetry-api/src/opentelemetry/trace/__init__.py | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/opentelemetry-api/src/opentelemetry/metrics/__init__.py b/opentelemetry-api/src/opentelemetry/metrics/__init__.py index c37119529b6..82545942821 100644 --- a/opentelemetry-api/src/opentelemetry/metrics/__init__.py +++ b/opentelemetry-api/src/opentelemetry/metrics/__init__.py @@ -24,7 +24,11 @@ .. _metrics api: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-metrics.md - +.. versionadded:: 0.1.0 +.. versionchanged:: 0.5.0 + ``meter_provider`` was replaced by `get_meter_provider`, + ``set_preferred_meter_provider_implementation`` was replaced by + `set_meter_provider`. """ import abc from logging import getLogger diff --git a/opentelemetry-api/src/opentelemetry/trace/__init__.py b/opentelemetry-api/src/opentelemetry/trace/__init__.py index e23404f707b..69cca344b6a 100644 --- a/opentelemetry-api/src/opentelemetry/trace/__init__.py +++ b/opentelemetry-api/src/opentelemetry/trace/__init__.py @@ -62,8 +62,12 @@ .. versionadded:: 0.1.0 .. versionchanged:: 0.3.0 - `TracerProvider` was introduced and the global ``tracer`` getter was replaced - by `get_tracer_provider`. + `TracerProvider` was introduced and the global ``tracer`` getter was + replaced by ``tracer_provider``. +.. versionchanged:: 0.5.0 + ``tracer_provider`` was replaced by `get_tracer_provider`, + ``set_preferred_tracer_provider_implementation`` was replaced by + `set_tracer_provider`. """ import abc