diff --git a/README.md b/README.md index 5641a6d..1fb77d2 100644 --- a/README.md +++ b/README.md @@ -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))