instrument

package
v0.0.0-...-65e2f22 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObserveRepoFunc

type ObserveRepoFunc func(store, repo, op string, begin time.Time, err error)

ObserveRepoFunc wraps a histogram to track repo op latencies.

func ObserveRepo

func ObserveRepo(namespace, subsystem string) ObserveRepoFunc

ObserveRepo wraps a histogram to track repo op latencies.

type ObserveRequestFunc

type ObserveRequestFunc func(
	code int,
	host, method, proto, route string,
	begin time.Time,
)

ObserveRequestFunc wraps a histogram to track request latencies.

func ObserveRequest

func ObserveRequest(namespace, subsystem string) ObserveRequestFunc

ObserveRequest wraps a histogram to track request latencies.

Jump to

Keyboard shortcuts

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