public interface MetricExporter
MetricExporter is the interface that all "push based" metric libraries should use to
export metrics to the OpenTelemetry exporters.
All OpenTelemetry exporters should allow access to a MetricExporter instance.
| Modifier and Type | Method and Description |
|---|---|
io.opentelemetry.sdk.common.CompletableResultCode |
export(Collection<MetricData> metrics)
Exports the collection of given
MetricData. |
io.opentelemetry.sdk.common.CompletableResultCode |
flush()
Exports the collection of
MetricData that have not yet been exported. |
void |
shutdown()
Called when the associated IntervalMetricReader is shutdown.
|
io.opentelemetry.sdk.common.CompletableResultCode export(Collection<MetricData> metrics)
MetricData. Note that export operations can be
performed simultaneously depending on the type of metric reader being used. However, the IntervalMetricReader will ensure that only one export can occur at a time.metrics - the collection of MetricData to be exported.io.opentelemetry.sdk.common.CompletableResultCode flush()
MetricData that have not yet been exported. Note that flush
operations can be performed simultaneously depending on the type of metric reader being used.
However, the IntervalMetricReader will ensure that only one export can occur at a time.void shutdown()