Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
Wrap returns a handler that wraps the provided one and emits metrics based on the HTTP requests and responses. It will record the HTTP response status, HTTP method, duration and path of the call. The duration will be reported in metrics.Timer and the rest will be labels on that timer.
Do not use with HTTP endpoints that take parameters from URL path, such as `/user/{user_id}`, because they will result in high cardinality metrics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.