An interface that allows different metric services to export recorded data in their own format.

To export data this MUST be registered to the Metrics SDK with a MetricReader.

interface PushMetricExporter {
    export(
        metrics: ResourceMetrics,
        resultCallback: (result: core.ExportResult) => void,
    ): void;
    forceFlush(): Promise<void>;
    selectAggregation(instrumentType: InstrumentType): AggregationOption;
    selectAggregationTemporality(
        instrumentType: InstrumentType,
    ): AggregationTemporality;
    shutdown(): Promise<void>;
}

Implemented by

Methods