Documentation
¶
Index ¶
- func NewHandler(h http.Handler) http.Handler
- func NewHandlerWith(eng *stats.Engine, h http.Handler) http.Handler
- func NewTransport(t http.RoundTripper) http.RoundTripper
- func NewTransportWith(eng *stats.Engine, t http.RoundTripper) http.RoundTripper
- func RequestTags(req *http.Request) []stats.Tag
- func RequestWithTags(req *http.Request, tags ...stats.Tag) *http.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler wraps h to produce metrics on the default engine for every request received and every response sent.
func NewHandlerWith ¶
NewHandlerWith wraps h to produce metrics on eng for every request received and every response sent.
func NewTransport ¶
func NewTransport(t http.RoundTripper) http.RoundTripper
NewTransport wraps t to produce metrics on the default engine for every request sent and every response received.
func NewTransportWith ¶
func NewTransportWith(eng *stats.Engine, t http.RoundTripper) http.RoundTripper
NewTransportWith wraps t to produce metrics on eng for every request sent and every response received.
func RequestTags ¶
RequestTags returns the tags associated with the request, if any. It returns nil otherwise.
func RequestWithTags ¶
RequestWithTags returns a shallow copy of req with its context updated to include the given tags. If the context already contains tags, then those are appended to, otherwise a new context containing the tags is created and attached to the new request ⚠️ : Using this may blow up the cardinality of your httpstats metrics. Use with care for tags with low cardinalities.
Types ¶
This section is empty.