Documentation ¶
Index ¶
- Variables
- func CreateCtx(parent context.Context, scope tally.Scope) context.Context
- func Ctx(ctx context.Context) tally.Scope
- func List() map[string]Factory
- func Register(name string, broker 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 ¶
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.