We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16f0c5c + 2fa6210 commit abf03e2Copy full SHA for abf03e2
opentelemetry-api/src/opentelemetry/trace/__init__.py
@@ -352,7 +352,7 @@ def start_as_current_span(
352
353
with tracer.start_as_current_span("one") as parent:
354
parent.add_event("parent's event")
355
- with trace.start_as_current_span("two") as child:
+ with tracer.start_as_current_span("two") as child:
356
child.add_event("child's event")
357
trace.get_current_span() # returns child
358
trace.get_current_span() # returns parent
0 commit comments