package stats

Import Path
	google.golang.org/grpc/internal/stats (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 2 packages

Involved Source Files Package stats provides internal stats related functionality. metrics_recorder_list.go stats.go
Package-Level Type Names (total 2)
/* sort by: | */
Labels are the labels for metrics. TelemetryLabels are the telemetry labels to record. func GetLabels(ctx context.Context) *Labels func SetLabels(ctx context.Context, labels *Labels) context.Context
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. EnforceMetricsRecorderEmbedding internal.EnforceMetricsRecorderEmbedding RecordFloat64Count records the measurement alongside labels on the float count associated with the provided handle. RecordFloat64Histo records the measurement alongside labels on the float histo associated with the provided handle. RecordInt64Count records the measurement alongside labels on the int count associated with the provided handle. RecordInt64Gauge records the measurement alongside labels on the int gauge associated with the provided handle. RecordInt64Histo records the measurement alongside labels on the int histo associated with the provided handle. RecordInt64UpDownCount records the measurement alongside labels on the int count associated with the provided handle. RegisterAsyncReporter forwards the registration to all underlying metrics recorders. It returns a cleanup function that, when called, invokes the cleanup function returned by each underlying recorder, ensuring the reporter is unregistered from all of them. MetricsRecorderList : google.golang.org/grpc/internal.EnforceMetricsRecorderEmbedding *MetricsRecorderList : google.golang.org/grpc/experimental/stats.MetricsRecorder func NewMetricsRecorderList(shs []stats.Handler) *MetricsRecorderList
Package-Level Functions (total 4)
GetLabels returns the Labels stored in the context, or nil if there is one.
NewCombinedHandler combines multiple stats.Handlers into a single handler. It returns nil if no handlers are provided. If only one handler is provided, it is returned directly without wrapping.
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.
SetLabels sets the Labels in the context.