MCPcopy Create free account
hub / github.com/grpc/grpc-java / addLongCounter

Method addLongCounter

api/src/main/java/io/grpc/MetricRecorder.java:57–57  ·  view source on GitHub ↗

Adds a value for a long valued counter metric instrument. @param metricInstrument The counter metric instrument to add the value against. @param value The value to add. MUST be non-negative. @param requiredLabelValues A list of required label values for the metric. @param optionalLabelValues A list

(LongCounterMetricInstrument metricInstrument, long value,
      List<String> requiredLabelValues, List<String> optionalLabelValues)

Source from the content-addressed store, hash-verified

55 * @param optionalLabelValues A list of additional, optional label values for the metric.
56 */
57 default void addLongCounter(LongCounterMetricInstrument metricInstrument, long value,
58 List<String> requiredLabelValues, List<String> optionalLabelValues) {
59 checkArgument(requiredLabelValues != null
60 && requiredLabelValues.size() == metricInstrument.getRequiredLabelKeys().size(),

Callers 1

addLongCounterMethod · 0.95

Implementers 4

MetricRecorderImplcore/src/main/java/io/grpc/internal/Me
OpenTelemetryMetricSinkopentelemetry/src/main/java/io/grpc/op
MetricRecorderImplcore/src/test/java/io/grpc/internal/In
MetricRecorderImplxds/src/test/java/io/grpc/xds/XdsClien

Calls

no outgoing calls

Tested by

no test coverage detected