From 02d87ee0c1dc569a99af86918730562b7ac7fe11 Mon Sep 17 00:00:00 2001 From: 42Questions Date: Tue, 3 Feb 2026 18:07:04 +0000 Subject: [PATCH 1/2] Minimal doc string change --- opentelemetry-api/src/opentelemetry/trace/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry-api/src/opentelemetry/trace/__init__.py b/opentelemetry-api/src/opentelemetry/trace/__init__.py index 529c73989c8..8d8a7879884 100644 --- a/opentelemetry-api/src/opentelemetry/trace/__init__.py +++ b/opentelemetry-api/src/opentelemetry/trace/__init__.py @@ -208,7 +208,7 @@ def get_tracer( Args: instrumenting_module_name: The uniquely identifiable name for instrumentation scope, such as instrumentation library, package, module or class name. - ``__name__`` may not be used as this can result in + ``__name__`` should be avoided as this can result in different tracer names if the tracers are in different files. It is better to use a fixed string that can be imported where needed and used consistently as the name of the tracer. From bc134ea8ffa4a08029f3b69705f08156d10c205f Mon Sep 17 00:00:00 2001 From: 42Questions Date: Wed, 4 Feb 2026 18:22:54 +0000 Subject: [PATCH 2/2] Fixed same docstring mistake in MeterProvider.get_meter --- .../src/opentelemetry/metrics/_internal/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py b/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py index 2319d8d1f90..93658a7974e 100644 --- a/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py +++ b/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py @@ -118,7 +118,7 @@ def get_meter( Args: name: The name of the instrumenting module. - ``__name__`` may not be used as this can result in + ``__name__`` should be avoided as this can result in different meter names if the meters are in different files. It is better to use a fixed string that can be imported where needed and used consistently as the name of the meter.