You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-threading/src/opentelemetry/instrumentation/threading/__init__.py
+73-15
Original file line number
Diff line number
Diff line change
@@ -24,72 +24,103 @@
24
24
ThreadingInstrumentor().instrument()
25
25
26
26
This library provides instrumentation for the `threading` module to ensure that
27
-
the OpenTelemetry context is propagated across threads.
27
+
the OpenTelemetry context is propagated across threads. It is important to note
28
+
that this instrumentation does not produce any telemetry data on its own. It
29
+
merely ensures that the context is correctly propagated when threads are used.
28
30
29
-
When instrumented, new threads created using `threading.Thread` or `threading.Timer`
30
-
will have the current OpenTelemetry context attached, and this context will be
31
-
re-activated in the thread's run method.
31
+
32
+
When instrumented, new threads created using threading.Thread, threading.Timer,
33
+
or within futures.ThreadPoolExecutor will have the current OpenTelemetry
34
+
context attached, and this context will be re-activated in the thread's
0 commit comments