Skip to content

Commit 13fb496

Browse files
authored
Fix syntax
1 parent b7a500c commit 13fb496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This Python package supports [OpenTracing](http://opentracing.io/). When using
3636
```Python
3737
import opentracing
3838

39-
with ot.tracer.start_active_span('asteroid 💫') as pscope:
39+
with opentracing.tracer.start_active_span('asteroid 💫') as pscope:
4040
pscope.span.set_tag(ext.COMPONENT, "Python simple example app")
4141
pscope.span.set_tag(ext.SPAN_KIND, ext.SPAN_KIND_RPC_SERVER)
4242
pscope.span.set_tag(ext.PEER_HOSTNAME, "localhost")
@@ -46,7 +46,7 @@ with ot.tracer.start_active_span('asteroid 💫') as pscope:
4646
pscope.span.log_kv({"foo": "bar"})
4747
# ... work ...
4848

49-
with ot.tracer.start_active_span('spacedust 🌚', child_of=pscope.span) as cscope:
49+
with opentracing.tracer.start_active_span('spacedust 🌚', child_of=pscope.span) as cscope:
5050
cscope.span.set_tag(ext.SPAN_KIND, ext.SPAN_KIND_RPC_CLIENT)
5151
cscope.span.set_tag(ext.PEER_HOSTNAME, "localhost")
5252
cscope.span.set_tag(ext.HTTP_URL, "/python/simple/two")

0 commit comments

Comments
 (0)