Skip to content

Commit

Permalink
Fix versionchanged doc from #466 (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
c24t authored Mar 14, 2020
1 parent 71c0c83 commit f52468b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion opentelemetry-api/src/opentelemetry/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions opentelemetry-api/src/opentelemetry/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f52468b

Please sign in to comment.