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

Method registerBatchCallback

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

Registers a callback to produce metric values for only the listed instruments. The returned registration must be closed when no longer needed, which will remove the callback. @param callback The callback to call to record. @param metricInstruments The metric instruments the callback will record aga

(Runnable callback,
      CallbackMetricInstrument... metricInstruments)

Source from the content-addressed store, hash-verified

132 * @param metricInstruments The metric instruments the callback will record against.
133 */
134 default Registration registerBatchCallback(Runnable callback,
135 CallbackMetricInstrument... metricInstruments) {
136 return () -> { };
137 }

Implementers 2

OpenTelemetryMetricSinkopentelemetry/src/main/java/io/grpc/op
NoopMetricSinkapi/src/testFixtures/java/io/grpc/Noop

Calls

no outgoing calls