package
0.9.0
Repository: https://github.com/basovnik/go-stdlib.git
Documentation: pkg.go.dev

# Functions

ClientSpanObserver returns a ClientOption that observes the span for the client-side span.
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.
InjectSpanContext returns a ClientOption that turns on or off injection of the Span context in the request HTTP headers.
Middleware wraps an http.Handler and traces incoming requests.
MiddlewareFunc wraps an http.HandlerFunc and traces incoming requests.
MWComponentName returns a MWOption that sets the component name for the server-side span.
MWSpanFilter returns a MWOption that filters requests from creating a span for the server-side span.
MWSpanObserver returns a MWOption that observe the span for the server-side span.
MWURLTagFunc returns a MWOption that uses given function f to set the span's http.url tag.
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.
TracerFromRequest retrieves the Tracer from the request.

# 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.