Documentation ¶
Index ¶
- func NewRuntimeReporter(ctx context.Context, metricFactory Factory, logger log.BasicLogger) interface{}
- type Factory
- type Gauge
- func (g *Gauge) Add(i int64)
- func (g *Gauge) AddUint32(i uint32)
- func (g *Gauge) Dec()
- func (g *Gauge) Export() exportedMetric
- func (g *Gauge) Inc()
- func (m *Gauge) Name() string
- func (g *Gauge) String() string
- func (g *Gauge) SubUint32(size uint32)
- func (g *Gauge) Update(i int64)
- func (g *Gauge) UpdateUInt32(i int32)
- func (g *Gauge) Value() int64
- type Histogram
- type Rate
- type Registry
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRuntimeReporter ¶
func NewRuntimeReporter(ctx context.Context, metricFactory Factory, logger log.BasicLogger) interface{}
Types ¶
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
func (*Gauge) UpdateUInt32 ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
func (*Histogram) RecordSince ¶
type Registry ¶
type Registry interface { Factory String() string ExportAll() map[string]exportedMetric ReportEvery(ctx context.Context, interval time.Duration, logger log.BasicLogger) }
func NewRegistry ¶
func NewRegistry() Registry
Click to show internal directories.
Click to hide internal directories.