Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient wraps an http.Client with tracing instrumentation.
type Mutex ¶
type Mutex struct { SessionBaggageKey string // 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(tracer opentracing.Tracer) *TracedServeMux
NewServeMux creates a new TracedServeMux.
func (*TracedServeMux) Handle ¶
func (tm *TracedServeMux) Handle(pattern string, handler http.Handler)
Handle implements http.ServeMux#Handle
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.