Package io.grpc.internal
Class MetricRecorderImpl.BatchRecorderImpl
java.lang.Object
io.grpc.internal.MetricRecorderImpl.BatchRecorderImpl
- All Implemented Interfaces:
MetricRecorder.BatchRecorder
- Enclosing class:
MetricRecorderImpl
static class MetricRecorderImpl.BatchRecorderImpl
extends Object
implements MetricRecorder.BatchRecorder
Recorder for instrument values produced by a batch callback.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
recordLongGauge
(LongGaugeMetricInstrument metricInstrument, long value, List<String> requiredLabelValues, List<String> optionalLabelValues) Record a long gauge value.
-
Field Details
-
sink
-
allowedInstruments
-
-
Constructor Details
-
BatchRecorderImpl
BatchRecorderImpl(MetricSink sink, BitSet allowedInstruments)
-
-
Method Details
-
recordLongGauge
public void recordLongGauge(LongGaugeMetricInstrument metricInstrument, long value, List<String> requiredLabelValues, List<String> optionalLabelValues) Description copied from interface:MetricRecorder.BatchRecorder
Record a long gauge value.- Specified by:
recordLongGauge
in interfaceMetricRecorder.BatchRecorder
- Parameters:
value
- The value to record.requiredLabelValues
- A list of required label values for the metric.optionalLabelValues
- A list of additional, optional label values for the metric.
-