From 5c284cd9e03cbcfeb9af9205ea964422332d24e9 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Fri, 2 May 2025 10:11:04 -0700 Subject: [PATCH] Add metrics exporter init with max batch size 50 --- solarwinds_apm/configurator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solarwinds_apm/configurator.py b/solarwinds_apm/configurator.py index 5b766283d..2c57b612d 100644 --- a/solarwinds_apm/configurator.py +++ b/solarwinds_apm/configurator.py @@ -249,6 +249,7 @@ def _custom_init_metrics( for _, exporter_or_reader_class in exporters_or_readers.items(): exporter_args = { + "max_export_batch_size": 50, "preferred_temporality": { Counter: AggregationTemporality.DELTA, UpDownCounter: AggregationTemporality.DELTA, @@ -256,7 +257,7 @@ def _custom_init_metrics( ObservableCounter: AggregationTemporality.DELTA, ObservableUpDownCounter: AggregationTemporality.DELTA, ObservableGauge: AggregationTemporality.DELTA, - } + }, } if issubclass(exporter_or_reader_class, MetricReader):