Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

This section is empty.

Source Files