Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
ext/jaeger: fix example
Browse files Browse the repository at this point in the history
The example of the jaeger exporter is failing because
e4d8949 ("OpenTracing Bridge - Initial implementation (open-telemetry#211)") introduced
a new timestamp parameter to add_event, the example was passing parameter by
position so it was messed up.
  • Loading branch information
mauriciovasquezbernal committed Nov 2, 2019
1 parent e53edd5 commit 783d8b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
# create some spans for testing
with tracer.start_as_current_span("foo") as foo:
time.sleep(0.1)
foo.set_attribute("my_atribbute", True)
foo.add_event("event in foo", {"name": "foo1"})
foo.set_attribute("my_attribute", True)
foo.add_event("event in foo", attributes={"name": "foo1"})
with tracer.start_as_current_span("bar") as bar:
time.sleep(0.2)
bar.set_attribute("speed", 100.0)
Expand Down

0 comments on commit 783d8b2

Please sign in to comment.