Documentation ¶
Index ¶
Constants ¶
View Source
const BackendName = "stdout"
BackendName is the name of this backend.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an object that is used to send messages to stdout.
func NewClient ¶
func NewClient(disabled gostatsd.TimerSubtypes) (*Client, error)
NewClient constructs a stdout backend.
func (Client) SendMetricsAsync ¶
func (client Client) SendMetricsAsync(ctx context.Context, metrics *gostatsd.MetricMap, cb gostatsd.SendCallback)
SendMetricsAsync prints the metrics in a MetricsMap to the stdout, preparing payload synchronously but doing the send asynchronously.
Click to show internal directories.
Click to hide internal directories.