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 | Interface and Description |
---|---|
static class |
MetricExporter.ResultCode
The possible results for the export method.
|
Modifier and Type | Method and Description |
---|---|
MetricExporter.ResultCode |
export(Collection<MetricData> metrics)
Exports the collection of given
MetricData . |
MetricExporter.ResultCode |
flush()
Exports the collection of
MetricData that have not yet been exported. |
void |
shutdown()
Called when the associated IntervalMetricReader is shutdown.
|
MetricExporter.ResultCode export(Collection<MetricData> metrics)
MetricData
.metrics
- the collection of MetricData
to be exported.MetricExporter.ResultCode flush()
MetricData
that have not yet been exported.void shutdown()