Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(cfg *Config) wool.Middleware
Types ¶
type Config ¶
type Config struct {
Version string `mapstructure:"version"`
Namespace string `mapstructure:"namespace"`
ExcludeRegexStatus string `mapstructure:"exclude_status"`
ExcludeRegexMethod string `mapstructure:"exclude_method"`
ExcludeRegexEndpoint string `mapstructure:"exclude_endpoint"`
EndpointLabelMapping RequestLabelMapping
// contains filtered or unexported fields
}
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *Config) *Prometheus
func (*Prometheus) Middleware ¶
func (m *Prometheus) Middleware(next wool.Handler) wool.Handler
type RequestLabelMapping ¶
Click to show internal directories.
Click to hide internal directories.