File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
instrumentation/opentelemetry-instrumentation-threading/tests Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ def test_without_thread_nesting(self):
75
75
self .assertIsNone (root .parent )
76
76
77
77
def test_with_thread_nesting (self ):
78
+ #
79
+ # Following scenario is tested.
80
+ # threadA -> methodA -> threadB -> methodB
81
+ #
82
+
78
83
square_thread = threading .Thread (target = self .print_square_with_thread , args = (10 ,))
79
84
80
85
@@ -93,6 +98,12 @@ def test_with_thread_nesting(self):
93
98
self .assertIsNone (root .parent )
94
99
95
100
def test_with_thread_multi_nesting (self ):
101
+ #
102
+ # Following scenario is tested.
103
+ # / threadB -> methodB
104
+ # threadA -> methodA ->
105
+ # \ threadC -> methodC
106
+ #
96
107
calculate_thread = threading .Thread (target = self .calculate , args = (10 ,))
97
108
98
109
with self .tracer .start_as_current_span ("root" ):
You can’t perform that action at this time.
0 commit comments