Skip to content

Commit 4b7bb0e

Browse files
committed
linting
1 parent fdddb7a commit 4b7bb0e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/aws_opentelemetry_configurator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
AwsMetricAttributesSpanExporterBuilder,
2323
)
2424
from amazon.opentelemetry.distro.aws_span_metrics_processor_builder import AwsSpanMetricsProcessorBuilder
25-
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.aws_batch_log_record_processor import AwsCloudWatchOtlpBatchLogRecordProcessor
25+
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.aws_batch_log_record_processor import (
26+
AwsCloudWatchOtlpBatchLogRecordProcessor,
27+
)
2628
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.otlp_aws_logs_exporter import OTLPAwsLogExporter
2729
from amazon.opentelemetry.distro.exporter.otlp.aws.traces.otlp_aws_span_exporter import OTLPAwsSpanExporter
2830
from amazon.opentelemetry.distro.otlp_udp_exporter import OTLPUdpSpanExporter

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/exporter/otlp/aws/logs/aws_batch_log_record_processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ class AwsCloudWatchOtlpBatchLogRecordProcessor(BatchLogRecordProcessor):
2121
2222
This processor still exports all logs up to _max_export_batch_size but rather than doing exactly
2323
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:
2525
2626
If the batch to be exported will have a data size of > 1 MB:
2727
The batch will be split into multiple exports of sub-batches of data size <= 1 MB.
2828
2929
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.
3030
"""
31+
3132
_BASE_LOG_BUFFER_BYTE_SIZE = (
3233
1000 # Buffer size in bytes to account for log metadata not included in the body or attribute size calculation
3334
)

0 commit comments

Comments
 (0)