Skip to content

Commit abf03e2

Browse files
authored
Merge branch 'main' into issue_2934
2 parents 16f0c5c + 2fa6210 commit abf03e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: opentelemetry-api/src/opentelemetry/trace/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def start_as_current_span(
352352
353353
with tracer.start_as_current_span("one") as parent:
354354
parent.add_event("parent's event")
355-
with trace.start_as_current_span("two") as child:
355+
with tracer.start_as_current_span("two") as child:
356356
child.add_event("child's event")
357357
trace.get_current_span() # returns child
358358
trace.get_current_span() # returns parent

0 commit comments

Comments
 (0)