Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNew ¶
func MustNew(c Config) endpoint.Middleware
MustNew returns a new metrics middleware but panics in case of error.
Types ¶
type Config ¶
type Config struct { // Metrifier is the metrifier configuration Metrifier metrifier.Config // LabelDecoder defines decoder for labels. The Labels must also be declared // in the Metrifier.ExtraLabels. LabelsDecoder LabelsDecoder }
Config is used to configure a metrics middleware.
func NewDefaultConfig ¶
NewDefaultConfig returns a new Config with sane defaults.
Directories ¶
Path | Synopsis |
---|---|
example
This is a simple example that shows how to setup the metrics middleware.
|
This is a simple example that shows how to setup the metrics middleware. |
example
This is a simple example that shows how to setup the metrics middleware.
|
This is a simple example that shows how to setup the metrics middleware. |
example
This is a simple example that shows how to setup the metrics middleware.
|
This is a simple example that shows how to setup the metrics middleware. |
Click to show internal directories.
Click to hide internal directories.