Back to godoc.org
github.com/uber-go/tally / statsd

package statsd

v3.3.17+incompatible
Latest Go to latest
Published: Jun 3, 2020 | License: MIT | Module: github.com/uber-go/tally

Index

Constants

const (
	// DefaultHistogramBucketNamePrecision is the default
	// precision to use when formatting the metric name
	// with the histogram bucket bound values.
	DefaultHistogramBucketNamePrecision = uint(6)
)

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.

type Options

type Options struct {
	// SampleRate is the metrics emission sample rate. If you
	// do not set this value it will be set to 1.
	SampleRate float32

	// HistogramBucketNamePrecision is the precision to use when
	// formatting the metric name with the histogram bucket bound values.
	// By default this will be set to the const DefaultHistogramBucketPrecision.
	HistogramBucketNamePrecision uint
}

Options is a set of options for the tally reporter.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier