MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithTracer

Function WithTracer

otes/hook.go:34–38  ·  view source on GitHub ↗

WithTracer specifies the opentracing.Tracer to call this transport.

(tracer opentracing.Tracer)

Source from the content-addressed store, hash-verified

32// WithTracer specifies the opentracing.Tracer to call
33// this transport.
34func 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.

Callers 1

newClientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected