@@ -64,18 +64,13 @@ def instrument(self, **kwargs):
6464 mechanism) that will be used later by the code in the ``instrument``
6565 implementation via the global ``Configuration`` object.
6666
67- When this method is to be called directly in the user code, ``kwargs``
68- should be used to pass attributes that will override the configuration
69- values read by the ``Configuration`` object.
70-
71- In this way, calling this method directly without passing any optional
72- values should do the very same thing that the
73- ``opentelemetry-auto-instrumentation`` command does. The idea behind
74- this approach is also to keep the ``Configuration`` object immutable.
75-
76- This is necessary because this object is used by all the OpenTelemetry
77- components and any change to one of its attributes could break another
78- component, leading to very hard to debug bugs.
67+ The ``instrument`` methods ``kwargs`` should default to values from the
68+ ``Configuration`` object.
69+
70+ This means that calling this method directly without passing any
71+ optional values should do the very same thing that the
72+ ``opentelemetry-auto-instrumentation`` command does. This approach is
73+ followed because the ``Configuration`` object is immutable.
7974 """
8075
8176 if not self ._is_instrumented :
@@ -88,7 +83,11 @@ def instrument(self, **kwargs):
8883 return None
8984
9085 def uninstrument (self , ** kwargs ):
91- """Uninstrument the library"""
86+ """Uninstrument the library
87+
88+ See ``BaseInstrumentor.instrument`` for more information regarding the
89+ usage of ``kwargs``.
90+ """
9291
9392 if self ._is_instrumented :
9493 result = self ._uninstrument (** kwargs )
0 commit comments