oss_19_periodic_metric_reader_batch_size#25
Conversation
Add an optional max_export_batch_size parameter to PeriodicExportingMetricReader. When set, collected metrics are split into batches so that no single exporter.export() call carries more than the configured number of data points, preserving the resource/scope/metric grouping. When unset (None), behavior is unchanged and the full collection is exported in a single call. Batching happens under the existing export lock.
|
🔒 Internal (dash0) — not for upstream.
|
|
📣 Public-facing draft — to be used for the upstream PR in Title: Add WhatAdds an optional
WhyThe metrics SDK spec defines SpecImplements the periodic reader TestsNew tests: |
Closes #21
Add optional max_export_batch_size to PeriodicExportingMetricReader with data-point chunking under the export lock (Linear OSS-19, finding M4); None = unchanged single export. Validation: metrics suite 309 passed, scope sdk+changelog.
Linear issue: https://linear.app/dash0/issue/OSS-19/m4-periodicexportingmetricreader-lacks-max-export-batch-size