OpenTelemetry.Metrics.PeriodicExportingMetricReader
MetricReader implementation which collects metrics based on
a user-configurable time interval and passes the metrics to
the configured MetricExporter.
Gets the maximum number of metric points in a batch provided to a
single export, or null if the number of metric points
in a batch is not limited.
public PeriodicExportingMetricReader(BaseExporter<Metric> exporter, int exportIntervalMilliseconds, int exportTimeoutMilliseconds)
Initializes a new instance of the PeriodicExportingMetricReader class.
public PeriodicExportingMetricReader(BaseExporter<Metric> exporter, int exportIntervalMilliseconds = 60000, int exportTimeoutMilliseconds = 30000, int? maxExportBatchSize = default)
Initializes a new instance of the PeriodicExportingMetricReader class
which optionally limits the number of metric points in each batch it exports.