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

Commit

Permalink
Use global tracer in README
Browse files Browse the repository at this point in the history
`opentracing.GlobalTracer()` is more correct than `tracer`.
  • Loading branch information
tedsuo authored Apr 26, 2017
1 parent eaa2524 commit 1949ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ reference.

// Transmit the span's TraceContext as HTTP headers on our
// outbound request.
tracer.Inject(
opentracing.GlobalTracer().Inject(
span.Context(),
opentracing.HTTPHeaders,
opentracing.HTTPHeadersCarrier(httpReq.Header))
Expand Down

0 comments on commit 1949ddb

Please sign in to comment.