Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ClientSpanObserver = nethttp.ClientSpanObserver
ClientSpanObserver returns a ClientOption that observes the span for the client-side span.
var ClientTrace = nethttp.ClientTrace
ClientTrace returns a ClientOption that turns on or off extra instrumentation via httptrace.WithClientTrace.
var ComponentName = nethttp.ComponentName
ComponentName returns a ClientOption that sets the component name for the client-side span.
var InjectSpanContext = nethttp.InjectSpanContext
InjectSpanContext returns a ClientOption that turns on or off injection of the Span context in the request HTTP headers. If this option is not used, the default behaviour is to inject the span context.
var OperationName = nethttp.OperationName
OperationName returns a ClientOption that sets the operation name for the client-side span.
var URLTagFunc = nethttp.URLTagFunc
URLTagFunc returns a ClientOption that uses given function f to set the span's http.url tag. Can be used to change the default http.url tag, eg to redact sensitive information.
Functions ¶
func Opentracing ¶
func Opentracing(tracer opentracing.Tracer, opts ...Option) easyhttp.Interceptor
Types ¶
type Option ¶
type Option = nethttp.ClientOption