Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
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)
Click to show internal directories.
Click to hide internal directories.