package
0.9.9
Repository: https://github.com/infraboard/mcube.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.
OperationName returns a ClientOption that sets the operation name for the client-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.

# Constants

RequestIDHeaderKey 补充的RequestID Header Key.

# Structs

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

# Type aliases

ClientOption contols the behavior of TraceRequest.