Documentation ¶
Overview ¶
Package metric provides an easy way to collect and dispatch application metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface { // Send will dispatch the metric. Send(Event) error // Close terminates potential persistent connections. Close() error }
Dispatcher is the interface used by all metric implementations.
func NewNoopDispatcher ¶
func NewNoopDispatcher() Dispatcher
NewNoopDispatcher creates a new noop dispatcher instance.
func NewStatsdDispatcher ¶
func NewStatsdDispatcher(prefix, statsdAddr string) (Dispatcher, error)
NewStatsdDispatcher creates a new statsd dispatcher instance.
Click to show internal directories.
Click to hide internal directories.