Skip to content

Commit 44207c8

Browse files
42Questionsxrmx
authored andcommitted
TracerProvider(ABC) doc string correction (open-telemetry#4894)
* Minimal doc string change * Fixed same docstring mistake in MeterProvider.get_meter --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
1 parent 8b42b23 commit 44207c8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def get_meter(
118118
119119
Args:
120120
name: The name of the instrumenting module.
121-
``__name__`` may not be used as this can result in
121+
``__name__`` should be avoided as this can result in
122122
different meter names if the meters are in different files.
123123
It is better to use a fixed string that can be imported where
124124
needed and used consistently as the name of the meter.

opentelemetry-api/src/opentelemetry/trace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def get_tracer(
208208
Args:
209209
instrumenting_module_name: The uniquely identifiable name for instrumentation
210210
scope, such as instrumentation library, package, module or class name.
211-
``__name__`` may not be used as this can result in
211+
``__name__`` should be avoided as this can result in
212212
different tracer names if the tracers are in different files.
213213
It is better to use a fixed string that can be imported where
214214
needed and used consistently as the name of the tracer.

0 commit comments

Comments
 (0)