Skip to content

Commit af3bdae

Browse files
sentrivanasl0thentr0py
authored andcommitted
comments
1 parent e8f6886 commit af3bdae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integrations/threading/test_threading.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ def do_some_work(number):
244244
t.join()
245245

246246
if propagate_scope:
247+
# The children spans from the threads become parts of the existing span
248+
# tree since we propagated the scope
247249
assert len(events) == 1
248250
(event,) = events
249251

@@ -258,6 +260,9 @@ def do_some_work(number):
258260
)
259261

260262
elif not propagate_scope:
263+
# The spans from the threads become their own root spans/transactions
264+
# as the connection to the parent span was severed when the scope was
265+
# cleared
261266
assert len(events) == 3
262267
(event1, event2, event3) = events
263268

0 commit comments

Comments
 (0)