Documentation ¶
Index ¶
- Variables
- func GetFromCtx(ctx context.Context) tally.Scope
- func InjectToCtx(parent context.Context, scope tally.Scope) context.Context
- func List() map[string]Factory
- func Register(name string, driver Factory)
- type BucketPair
- type Buckets
- type Capabilities
- type Config
- type Counter
- type Factory
- type Gauge
- type Histogram
- type Metric
- type MetricConfigLoader
- type Scope
- type Stats
- type Stopwatch
- type StopwatchRecorder
- type Tags
- type Timer
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "metric"
Functions ¶
func GetFromCtx ¶ added in v0.2.21
func InjectToCtx ¶ added in v0.2.21
Types ¶
type BucketPair ¶
type BucketPair = tally.BucketPair
type Capabilities ¶
type Capabilities = tally.Capabilities
type Config ¶
type Config struct { Driver string `yaml:"driver"` DriverCfg *config.Node `yaml:"driver_config"` Interval time.Duration `yaml:"interval"` }
func DefaultCfg ¶
func DefaultCfg() Config
type MetricConfigLoader ¶
type MetricConfigLoader struct {
Metric *Config `yaml:"metric"`
}
type StopwatchRecorder ¶
type StopwatchRecorder = tally.StopwatchRecorder
Click to show internal directories.
Click to hide internal directories.