Documentation ¶
Overview ¶
Package stats provides internal stats related functionality.
Index ¶
- func SetLabels(ctx context.Context, labels *Labels) context.Context
- type Labels
- type MetricsRecorderList
- func (l *MetricsRecorderList) RecordFloat64Count(handle *estats.Float64CountHandle, incr float64, labels ...string)
- func (l *MetricsRecorderList) RecordFloat64Histo(handle *estats.Float64HistoHandle, incr float64, labels ...string)
- func (l *MetricsRecorderList) RecordInt64Count(handle *estats.Int64CountHandle, incr int64, labels ...string)
- func (l *MetricsRecorderList) RecordInt64Gauge(handle *estats.Int64GaugeHandle, incr int64, labels ...string)
- func (l *MetricsRecorderList) RecordInt64Histo(handle *estats.Int64HistoHandle, incr int64, labels ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Labels ¶
type Labels struct { // TelemetryLabels are the telemetry labels to record. TelemetryLabels map[string]string }
Labels are the labels for metrics.
type MetricsRecorderList ¶ added in v1.66.0
type MetricsRecorderList struct {
// contains filtered or unexported fields
}
MetricsRecorderList forwards Record calls to all of its metricsRecorders.
It eats any record calls where the label values provided do not match the number of label keys.
func NewMetricsRecorderList ¶ added in v1.66.0
func NewMetricsRecorderList(shs []stats.Handler) *MetricsRecorderList
NewMetricsRecorderList creates a new metric recorder list with all the stats handlers provided which implement the MetricsRecorder interface. If no stats handlers provided implement the MetricsRecorder interface, the MetricsRecorder list returned is a no-op.
func (*MetricsRecorderList) RecordFloat64Count ¶ added in v1.66.0
func (l *MetricsRecorderList) RecordFloat64Count(handle *estats.Float64CountHandle, incr float64, labels ...string)
func (*MetricsRecorderList) RecordFloat64Histo ¶ added in v1.66.0
func (l *MetricsRecorderList) RecordFloat64Histo(handle *estats.Float64HistoHandle, incr float64, labels ...string)
func (*MetricsRecorderList) RecordInt64Count ¶ added in v1.66.0
func (l *MetricsRecorderList) RecordInt64Count(handle *estats.Int64CountHandle, incr int64, labels ...string)
func (*MetricsRecorderList) RecordInt64Gauge ¶ added in v1.66.0
func (l *MetricsRecorderList) RecordInt64Gauge(handle *estats.Int64GaugeHandle, incr int64, labels ...string)
func (*MetricsRecorderList) RecordInt64Histo ¶ added in v1.66.0
func (l *MetricsRecorderList) RecordInt64Histo(handle *estats.Int64HistoHandle, incr int64, labels ...string)
Click to show internal directories.
Click to hide internal directories.