Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
Buffer is a metrics.Interface backed by a buffer.
func New ¶
func New(m metrics.Interface, size int, flushInterval time.Duration, flushTimeout time.Duration) (Buffer, error)
New returns a new buffer wrapping m, with given buffer size, flush interval (how frequently the buffer is automatically submitted to m), and flush timeout (how long before a submission attempt to m is determined to have timed out). It is important that the user call Close on the returned buffer, otherwise unflushed metric data will be lost.
Click to show internal directories.
Click to hide internal directories.