Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CWStatter ¶
type CWStatter struct {
// contains filtered or unexported fields
}
CWStatter represents all the elements necessary to meet the Statter struct used by the tune statting client
type Client ¶
Client represents a client wrapper for a statsD client
func NewCWStatter ¶
NewCWStatter takes a prefix and returns a configured statter to point at cloudwatch
func NewCWStatterWithClient ¶
NewCWStatterWithClient takes a prefix and http client and returns a configured statter to point at cloudwatch
func NewStatsD ¶
NewStatsD takes a protocol, host, and prefix to initialize a statsD client with. It returns an error if initializing the client encounters any errors.
func (*Client) StatEndpoint ¶
func (c *Client) StatEndpoint(fn http.HandlerFunc, label string) http.HandlerFunc
StatEndpoint wraps a http handler to collect and send stats to the aggregator. It will send counts and timing metrics to be aggregated.
Click to show internal directories.
Click to hide internal directories.