Skip to content

Commit 8b7e671

Browse files
committed
linting fix
1 parent b30ad4f commit 8b7e671

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_opentelementry_configurator.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
from amazon.opentelemetry.distro.aws_span_metrics_processor import AwsSpanMetricsProcessor
4848
from amazon.opentelemetry.distro.exporter.aws.metrics.aws_cloudwatch_emf_exporter import AwsCloudWatchEmfExporter
4949
from amazon.opentelemetry.distro.exporter.otlp.aws.common.aws_auth_session import AwsAuthSession
50+
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.aws_batch_log_record_processor import (
51+
AwsCloudWatchOtlpBatchLogRecordProcessor,
52+
)
5053
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.otlp_aws_logs_exporter import OTLPAwsLogExporter
5154
from amazon.opentelemetry.distro.exporter.otlp.aws.traces.otlp_aws_span_exporter import OTLPAwsSpanExporter
5255
from amazon.opentelemetry.distro.otlp_udp_exporter import OTLPUdpSpanExporter
@@ -1014,12 +1017,6 @@ def test_validate_and_fetch_logs_header(self):
10141017
@patch("amazon.opentelemetry.distro.aws_opentelemetry_configurator._is_aws_otlp_endpoint")
10151018
def test_customize_log_record_processor_with_agent_observability(self, mock_is_aws_endpoint, mock_is_agent_enabled):
10161019
"""Test that AwsCloudWatchOtlpBatchLogRecordProcessor is used when agent observability is enabled and endpoint is logs endpoint"""
1017-
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.aws_batch_log_record_processor import (
1018-
AwsCloudWatchOtlpBatchLogRecordProcessor,
1019-
)
1020-
from amazon.opentelemetry.distro.exporter.otlp.aws.logs.otlp_aws_logs_exporter import OTLPAwsLogExporter
1021-
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
1022-
10231020
# Mock the OTLPAwsLogExporter
10241021
mock_exporter = MagicMock(spec=OTLPAwsLogExporter)
10251022

0 commit comments

Comments
 (0)