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):
7575 self .assertIsNone (root .parent )
7676
7777 def test_with_thread_nesting (self ):
78+ #
79+ # Following scenario is tested.
80+ # threadA -> methodA -> threadB -> methodB
81+ #
82+
7883 square_thread = threading .Thread (target = self .print_square_with_thread , args = (10 ,))
7984
8085
@@ -93,6 +98,12 @@ def test_with_thread_nesting(self):
9398 self .assertIsNone (root .parent )
9499
95100 def test_with_thread_multi_nesting (self ):
101+ #
102+ # Following scenario is tested.
103+ # / threadB -> methodB
104+ # threadA -> methodA ->
105+ # \ threadC -> methodC
106+ #
96107 calculate_thread = threading .Thread (target = self .calculate , args = (10 ,))
97108
98109 with self .tracer .start_as_current_span ("root" ):
You can’t perform that action at this time.
0 commit comments