Skip to content

Commit

Permalink
Fix documentation (#2490)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl authored Feb 28, 2022
1 parent baaec66 commit 91ce1ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions opentelemetry-api/src/opentelemetry/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,11 @@ def get_tracer(
vs. a functional tracer).
Args:
instrumenting_module_name: The name of the instrumenting module
(usually just ``__name__``).
instrumenting_module_name: The name of the instrumenting module.
``__name__`` may not be used 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.
This should *not* be the name of the module that is
instrumented but the name of the module doing the instrumentation.
Expand Down

0 comments on commit 91ce1ff

Please sign in to comment.