WithTracer specifies the opentracing.Tracer to call this transport.
(tracer opentracing.Tracer)
| 32 | // WithTracer specifies the opentracing.Tracer to call |
| 33 | // this transport. |
| 34 | func WithTracer(tracer opentracing.Tracer) TransportOption { |
| 35 | return func(t *Transport) { |
| 36 | t.tracer = tracer |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // NewTransport specifies a transport that will trace Elastic |
| 41 | // and report back via OpenTracing. |