Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 28771b4

Browse files
pgadigeyurishkuro
authored andcommitted
Add Span's log_kv method to example code (#147)
1 parent 5da7d0e commit 28771b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
66
for distributed trace collection, and to send those traces to Jaeger.
77
See the [OpenTracing Python API](https://github.com/opentracing/opentracing-python)
88
for 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

0 commit comments

Comments
 (0)