MCPcopy
hub / github.com/grpc/grpc-go / RegisterAsyncReporter

Method RegisterAsyncReporter

experimental/stats/metrics.go:69–69  ·  view source on GitHub ↗

RegisterAsyncReporter registers a reporter to produce metric values for only the listed descriptors. The returned function must be called when the metrics are no longer needed, which will remove the reporter. The returned method needs to be idempotent and concurrent safe.

(reporter AsyncMetricReporter, descriptors ...AsyncMetric)

Source from the content-addressed store, hash-verified

67 // the metrics are no longer needed, which will remove the reporter. The
68 // returned method needs to be idempotent and concurrent safe.
69 RegisterAsyncReporter(reporter AsyncMetricReporter, descriptors ...AsyncMetric) func()
70
71 // EnforceMetricsRecorderEmbedding is included to force implementers to embed
72 // another implementation of this interface, allowing gRPC to add methods

Callers 2

BuildMethod · 0.65

Implementers 3

MetricsRecorderListinternal/stats/metrics_recorder_list.g
registryMetricsstats/opentelemetry/opentelemetry.go
UnimplementedMetricsRecorderexperimental/stats/metrics.go

Calls

no outgoing calls

Tested by 1