Skip to content

Commit a7535a1

Browse files
authored
jaeger: Usage README Update for opentelemetry-ext-jaeger (open-telemetry#459)
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'`
1 parent 005575e commit a7535a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opentelemetry-ext-jaeger/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ gRPC is still not supported by this implementation.
5656
span_processor = BatchExportSpanProcessor(jaeger_exporter)
5757
5858
# add to the tracer
59-
tracer.add_span_processor(span_processor)
59+
trace.tracer_provider().add_span_processor(span_processor)
6060
6161
with tracer.start_as_current_span('foo'):
6262
print('Hello world!')

0 commit comments

Comments
 (0)