Documentation ¶
Index ¶
- type Metrics
- func (*Metrics) Count(key string) metrics.Count
- func (*Metrics) CountFields(key string, additionalFields field.AbstractFields) metrics.Count
- func (*Metrics) Flush()
- func (*Metrics) Gauge(key string) metrics.Gauge
- func (*Metrics) GaugeFields(key string, additionalFields field.AbstractFields) metrics.Gauge
- func (*Metrics) IntGauge(key string) metrics.IntGauge
- func (*Metrics) IntGaugeFields(key string, additionalFields field.AbstractFields) metrics.IntGauge
- func (*Metrics) WithContextFields(allFields *field.FieldsChain, newFieldsCount int) belt.Tool
- func (*Metrics) WithTraceIDs(traceIDs belt.TraceIDs, newTraceIDsCount int) belt.Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct{}
Metrics is a dummy implementation of metrics.Metrics. It returns safe handlers which won't panic, but they doesn't do anything.
func (*Metrics) CountFields ¶
CountFields implements metrics.Metrics.
func (*Metrics) GaugeFields ¶
GaugeFields implements metrics.Metrics.
func (*Metrics) IntGaugeFields ¶
IntGaugeFields implements metrics.Metrics.
func (*Metrics) WithContextFields ¶
func (*Metrics) WithContextFields(allFields *field.FieldsChain, newFieldsCount int) belt.Tool
WithContextFields implements metrics.Metrics.
func (*Metrics) WithTraceIDs ¶
WithTraceIDs implements metrics.Metrics.
Click to show internal directories.
Click to hide internal directories.