package
0.0.0-20180313041242-367231351874
Repository: https://github.com/vbehar/go-stdlib.git
Documentation: pkg.go.dev

# Functions

ClientTrace returns a ClientOption that turns on or off extra instrumentation via httptrace.WithClientTrace.
ComponentName returns a ClientOption that sets the component name for the client-side span.
Middleware wraps an http.Handler and traces incoming requests.
MWComponentName returns a MWOption that sets the component name for the server-side span.
MWSpanObserver returns a MWOption that observe the span for the server-side span.
OperationName returns a ClientOption that sets the operation name for the client-side span.
OperationNameFunc returns a MWOption that uses given function f to generate operation name for each server-side span.
TraceRequest adds a ClientTracer to req, tracing the request and all requests caused due to redirects.

# Structs

Tracer holds tracing details for one HTTP request.
Transport wraps a RoundTripper.

# Type aliases

ClientOption contols the behavior of TraceRequest.
MWOption controls the behavior of the Middleware.