Documentation ¶
Index ¶
- func Close() error
- func Count(name string, value int64, tags ...Tag)
- func CreateHandler(log *zap.Logger) (http.Handler, error)
- func Gauge(name string, value int64, tags ...Tag)
- func GaugeAdd(name string, value int64, tags ...Tag)
- func Histogram(name string, value float64, tags ...Tag)
- func InitMetricsClient(logger *zap.Logger, clientType string) error
- type ClientType
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
CreateHandler create an http.Handler if supported by the client. Otherwise an error will be returned.
Types ¶
type ClientType ¶
type ClientType int
const ( NoOp ClientType = iota Datadog Prometheus )
func ParseClientType ¶
func ParseClientType(clientType string) (ClientType, error)
func (ClientType) String ¶
func (c ClientType) String() string
Click to show internal directories.
Click to hide internal directories.