metrics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter interface {
	Failure(id string, endTime time.Duration, err error) error
	Success(id string, endTime time.Duration) error
}

Reporter interface for metric recording can use this interface to implement statsd metric reporting

func NewReporter

func NewReporter() Reporter

NewReporter basic Reporter implementation that logs success and failure

Jump to

Keyboard shortcuts

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