gometrics

package
v0.0.0-...-66c322a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(r metrics.Registry) trace.Wrapper

Wrap creates a wrapper around a go-metrics registry. All metrics will be extracted from the registry. When an event is received with a Metric(name) option, a metric with the same name will be searched. The following metric types are supported : Meter/Counter (all events) and Timer (span event only)

t := trace.New("name", []trace.Wrapper{gometrics.Wrap(metrics.DefaultRegistry)})

Types

type MetricsOption

type MetricsOption func(*gometricsWrapper)

Jump to

Keyboard shortcuts

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