Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 1949ddb

Browse files
author
Ted Young
authored
Use global tracer in README
`opentracing.GlobalTracer()` is more correct than `tracer`.
1 parent eaa2524 commit 1949ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ reference.
9595

9696
// Transmit the span's TraceContext as HTTP headers on our
9797
// outbound request.
98-
tracer.Inject(
98+
opentracing.GlobalTracer().Inject(
9999
span.Context(),
100100
opentracing.HTTPHeaders,
101101
opentracing.HTTPHeadersCarrier(httpReq.Header))

0 commit comments

Comments
 (0)