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.EnforceMetricsRecorderEmbeddinginternal.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.
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.