Documentation ¶
Overview ¶
Package gorilla provides OpenTracing instrumentation for the gorilla package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware wraps an http.Handler and traces incoming requests. Additionally, it adds the span to the request's context.
By default, the operation name of the spans is set to "HTTP {method}". This can be overriden with options.
The options allow fine tuning the behavior of the middleware.
Example:
pattern := "/api/custerms/{id}" mw := gorilla.Middleware( tracer, handler, ) r := mux.NewRouter() r.HandleFunc(pattern, mw)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.