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

Function NewTransport

otes/hook.go:42–48  ·  view source on GitHub ↗

NewTransport specifies a transport that will trace Elastic and report back via OpenTracing.

(opts ...TransportOption)

Source from the content-addressed store, hash-verified

40// NewTransport specifies a transport that will trace Elastic
41// and report back via OpenTracing.
42func NewTransport(opts ...TransportOption) *Transport {
43 t := &Transport{}
44 for _, o := range opts {
45 o(t)
46 }
47 return t
48}
49
50// RoundTrip captures the request and starts an OpenTracing span
51// for Elastic PerformRequest operation.

Callers 1

newClientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected