This repository was archived by the owner on Jul 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11[ ![ Build Status] [ ci-img ]] [ ci ] [ ![ Coverage Status] [ cov-img ]] [ cov ] [ ![ PyPI version] [ pypi-img ]] [ pypi ] [ ![ FOSSA Status] [ fossa-img ]] [ fossa ]
22
3- # Jaeger Bindings for Python OpenTracing API
3+ # Jaeger Bindings for Python OpenTracing API
44
5- This is a client-side library that can be used to instrument Python apps
5+ This is a client-side library that can be used to instrument Python apps
66for distributed trace collection, and to send those traces to Jaeger.
77See the [ OpenTracing Python API] ( https://github.com/opentracing/opentracing-python )
88for additional detail.
@@ -44,10 +44,10 @@ if __name__ == "__main__":
4444 tracer = config.initialize_tracer()
4545
4646 with tracer.start_span(' TestSpan' ) as span:
47- span.log_event( ' test message' , payload = { ' life' : 42 })
47+ span.log_kv({ ' event ' : ' test message' , ' life' : 42 })
4848
4949 with tracer.start_span(' ChildSpan' , child_of = span) as child_span:
50- span.log_event( ' down below' )
50+ span.log_kv({ ' event ' : ' down below' } )
5151
5252 time.sleep(2 ) # yield to IOLoop to flush the spans - https://github.com/jaegertracing/jaeger-client-python/issues/50
5353 tracer.close() # flush any buffered spans
You can’t perform that action at this time.
0 commit comments