package xkit
import "github.com/uber/jaeger-lib/metrics/go-kit"
Index ¶
- func Wrap(namespace string, f Factory, options ...FactoryOption) metrics.Factory
- type Capabilities
- type Counter
- type Factory
- type FactoryOption
- type Gauge
- type Histogram
- type Timer
Functions ¶
func Wrap ¶
func Wrap(namespace string, f Factory, options ...FactoryOption) metrics.Factory
Wrap is used to create an adapter from xkit.Factory to metrics.Factory.
Types ¶
type Capabilities ¶
type Capabilities struct { // Tagging indicates whether the factory has the capability for tagged metrics Tagging bool }
Capabilities describes capabilities of a specific metrics factory.
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is an adapter from go-kit Counter to jaeger-lib Counter
func NewCounter ¶
NewCounter creates a new Counter
func (*Counter) Inc ¶
Inc adds the given value to the counter.
type Factory ¶
type Factory interface { Counter(name string) kit.Counter Gauge(name string) kit.Gauge Histogram(name string) kit.Histogram Capabilities() Capabilities }
Factory provides a unified interface for creating named metrics from various go-kit metrics implementations.
type FactoryOption ¶
type FactoryOption func(*factory)
FactoryOption is a function that adjusts some parameters of the factory.
func ScopeSeparator ¶
func ScopeSeparator(scopeSep string) FactoryOption
ScopeSeparator returns an option that overrides default scope separator.
func TagsSeparator ¶
func TagsSeparator(tagsSep string) FactoryOption
TagsSeparator returns an option that overrides default tags separator.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge is an adapter from go-kit Gauge to jaeger-lib Gauge
func NewGauge ¶
NewGauge creates a new Gauge
func (*Gauge) Update ¶
Update the gauge to the value passed in.
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram is an adapter from go-kit Histogram to jaeger-lib Histogram
func NewHistogram ¶
NewHistogram creates a new Histogram
func (*Histogram) Record ¶
Record saves the value passed in.
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer is an adapter from go-kit Histogram to jaeger-lib Timer
func NewTimer ¶
NewTimer creates a new Timer
func (*Timer) Record ¶
Record saves the time passed in.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
metrics/go-kit/expvar | |
metrics/go-kit/influx |
- Version
- v2.4.1+incompatible (latest)
- Published
- Mar 29, 2021
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 6 hours ago –
Tools for package owners.