oss_19_periodic_metric_reader_batch_size - #25
Conversation
|
🔒 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: |
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
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.
a2b99dc to
36d1f90
Compare
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