statsd

package
v0.0.0-...-fbbaae4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2013 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package statsd records the time taken to respond to HTTP requests in statsd

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decorate

func Decorate(statter *Statsd, prefix string, h http.Handler) http.Handler

Types

type Statsd

type Statsd struct {
	g2s.Statter
}

func Dial

func Dial(proto, addr string) *Statsd

func (Statsd) Counter

func (sd Statsd) Counter(sampleRate float32, bucket string, n ...int)

func (Statsd) Gauge

func (sd Statsd) Gauge(sampleRate float32, bucket string, value ...string)

func (Statsd) Timing

func (sd Statsd) Timing(sampleRate float32, bucket string, d ...time.Duration)

type StatsdLogHandler

type StatsdLogHandler struct {
	// contains filtered or unexported fields
}

func (*StatsdLogHandler) ServeHTTP

func (sh *StatsdLogHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP records the time for a request and sends the result to statsd

Jump to

Keyboard shortcuts

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