@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
19 lines (18 loc) • 663 B
TypeScript
import type { PushMetricExporter } from '@opentelemetry/sdk-metrics';
import { MetricReader } from '@opentelemetry/sdk-metrics';
export interface InstantaneousMetricReaderOptions {
/**
* The backing exporter for the metric reader.
*/
exporter: PushMetricExporter;
/**
* How much the export should be throttled in milliseconds.
*/
throttleLimit: number;
}
export declare class InstantaneousMetricReader extends MetricReader {
private readonly _exporter;
constructor({ exporter, throttleLimit }: InstantaneousMetricReaderOptions);
protected onForceFlush(): Promise<void>;
protected onShutdown(): Promise<void>;
}