Skip to content

Commit

Permalink
jaeger: Usage README Update for opentelemetry-ext-jaeger (#459)
Browse files Browse the repository at this point in the history
Usage docs for opentelemetry-ext-jaeger need to be updated after the change to `TracerSource` with v0.4. Looks like it was partially updated already.

Users following the usage docs will currently run into this error:
`AttributeError: 'Tracer' object has no attribute 'add_span_processor'`
  • Loading branch information
toumorokoshi authored Mar 5, 2020
1 parent 005575e commit a7535a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opentelemetry-ext-jaeger/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ gRPC is still not supported by this implementation.
span_processor = BatchExportSpanProcessor(jaeger_exporter)
# add to the tracer
tracer.add_span_processor(span_processor)
trace.tracer_provider().add_span_processor(span_processor)
with tracer.start_as_current_span('foo'):
print('Hello world!')
Expand Down

0 comments on commit a7535a1

Please sign in to comment.