Skip to content

Commit 2960e37

Browse files
author
Peter Giacomo Lombardo
committed
Add comment to example
1 parent 3782cee commit 2960e37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/carry_context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ async def launch_async_calls(parent_span):
3535
with tracer.start_active_span("launch_uvloop") as sync_scope:
3636
sync_scope.span.set_tag('span.kind', 'entry')
3737

38+
# You can also retrieve the currently active span with:
39+
# tracer.active_span
40+
3841
# Launch our requests asynchronously
3942
# Enter the event loop and pass in the parent tracing context (sync_scope) manually
4043
asyncio.run(launch_async_calls(sync_scope.span))

0 commit comments

Comments
 (0)