statsd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReporter

func NewReporter(statsd statsd.Statter, opts Options) tally.StatsReporter

NewReporter wraps a statsd.Statter for use with tally. Use either statsd.NewClient or statsd.NewBufferedClient.

Types

type Options

type Options interface {
	// SampleRate returns the sample rate
	SampleRate() float32

	// SetSampleRate sets the sample rate and returns new options with the value set
	SetSampleRate(value float32) Options
}

Options represents a set of statsd stats reporter options

func NewOptions

func NewOptions() Options

NewOptions creates a new set of statsd stats reporter options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL