Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
type HTTPClient struct { TracerProvider trace.TracerProvider Client *http.Client }
HTTPClient wraps an http.Client with tracing instrumentation.
func NewHTTPClient ¶ added in v1.48.0
func NewHTTPClient(tp trace.TracerProvider) *HTTPClient
type Mutex ¶
type Mutex struct { SessionBaggageKey string LogFactory log.Factory // contains filtered or unexported fields }
Mutex is just like the standard sync.Mutex, except that it is aware of the Context and logs some diagnostic information into the current span.
type TracedServeMux ¶
type TracedServeMux struct {
// contains filtered or unexported fields
}
TracedServeMux is a wrapper around http.ServeMux that instruments handlers for tracing.
func NewServeMux ¶
func NewServeMux(copyBaggage bool, tracer trace.TracerProvider, logger log.Factory) *TracedServeMux
NewServeMux creates a new TracedServeMux.
func (*TracedServeMux) Handle ¶
func (tm *TracedServeMux) Handle(pattern string, handler http.Handler)
Handle implements http.ServeMux#Handle, which is used to register new handler.
func (*TracedServeMux) ServeHTTP ¶
func (tm *TracedServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.ServeMux#ServeHTTP.
Click to show internal directories.
Click to hide internal directories.