You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/metric_exporter/__init__.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -298,7 +298,8 @@ def _split_metrics_data(
298
298
self,
299
299
metrics_data: pb2.MetricsData,
300
300
) ->Iterable[pb2.MetricsData]:
301
-
"""Splits metrics data into several metrics data. Copies protobuf originals.
301
+
"""Splits metrics data into several MetricsData (copies protobuf originals),
302
+
based on configured data point max export batch size.
302
303
303
304
Args:
304
305
metrics_data: metrics object based on HTTP protocol buffer definition
@@ -408,9 +409,14 @@ def _split_metrics_data(
408
409
batch_size+=1
409
410
410
411
ifbatch_size>=self._max_export_batch_size:
412
+
# Update scope metrics, resource metrics after all data_points (so far) added to metric
0 commit comments