train: github.com/f2prateek/train/statsd Index | Files

package statsd

import "github.com/f2prateek/train/statsd"

Index

Package Files

statsd.go

func New Uses

func New(stats statsd.Client) train.Interceptor

New returns a statsd interceptor that logs the following metrics: * requests (counter) - request count * requests.method.<method> (counter) - requests by method * request.size (timer) - request content-length * response.ok (counter) - successful requests * response.errors.client (counter) - client errors * response.errors.server (counter) - server errors * response.duration (timer) - request duration * response.size (timer) - response size in bytes

Package statsd imports 4 packages (graph). Updated 2016-08-01. Refresh now. Tools for package owners.