Class PushMetricExporter
Defined in File push_metric_exporter.h
Class Documentation
-
class PushMetricExporter
PushMetricExporter defines the interface to be used by metrics libraries to push metrics data to the OpenTelemetry exporters.
Public Functions
-
virtual ~PushMetricExporter() = default
-
virtual opentelemetry::sdk::common::ExportResult Export(const ResourceMetrics &data) noexcept = 0
Exports a batch of metrics data. This method must not be called concurrently for the same exporter instance.
- Parameters:
data – metrics data
-
virtual AggregationTemporality GetAggregationTemporality(InstrumentType instrument_type) const noexcept = 0
Get the AggregationTemporality for given Instrument Type for this exporter.
- Returns:
AggregationTemporality
-
virtual bool ForceFlush(std::chrono::microseconds timeout = (std::chrono::microseconds::max)()) noexcept = 0
Force flush the exporter.
-
virtual bool Shutdown(std::chrono::microseconds timeout = std::chrono::microseconds(0)) noexcept = 0
Shut down the metric exporter.
- Parameters:
timeout – an optional timeout.
- Returns:
return the status of the operation.
-
virtual ~PushMetricExporter() = default