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: aws-opentelemetry-distro/src/amazon/opentelemetry/distro/exporter/otlp/aws/logs/aws_batch_log_record_processor.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,14 @@ class AwsCloudWatchOtlpBatchLogRecordProcessor(BatchLogRecordProcessor):
21
21
22
22
This processor still exports all logs up to _max_export_batch_size but rather than doing exactly
23
23
one export, we will estimate log sizes and do multiple batch exports
24
-
where each exported batch will have an additonal constraint:
24
+
where each exported batch will have an additional constraint:
25
25
26
26
If the batch to be exported will have a data size of > 1 MB:
27
27
The batch will be split into multiple exports of sub-batches of data size <= 1 MB.
28
28
29
29
A unique case is if the sub-batch is of data size > 1 MB, then the sub-batch will have exactly 1 log in it.
30
30
"""
31
+
31
32
_BASE_LOG_BUFFER_BYTE_SIZE= (
32
33
1000# Buffer size in bytes to account for log metadata not included in the body or attribute size calculation
0 commit comments