File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
aws-opentelemetry-distro/tests/amazon/opentelemetry/distro Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 47
47
from amazon .opentelemetry .distro .aws_span_metrics_processor import AwsSpanMetricsProcessor
48
48
from amazon .opentelemetry .distro .exporter .aws .metrics .aws_cloudwatch_emf_exporter import AwsCloudWatchEmfExporter
49
49
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
+ )
50
53
from amazon .opentelemetry .distro .exporter .otlp .aws .logs .otlp_aws_logs_exporter import OTLPAwsLogExporter
51
54
from amazon .opentelemetry .distro .exporter .otlp .aws .traces .otlp_aws_span_exporter import OTLPAwsSpanExporter
52
55
from amazon .opentelemetry .distro .otlp_udp_exporter import OTLPUdpSpanExporter
@@ -1014,12 +1017,6 @@ def test_validate_and_fetch_logs_header(self):
1014
1017
@patch ("amazon.opentelemetry.distro.aws_opentelemetry_configurator._is_aws_otlp_endpoint" )
1015
1018
def test_customize_log_record_processor_with_agent_observability (self , mock_is_aws_endpoint , mock_is_agent_enabled ):
1016
1019
"""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
-
1023
1020
# Mock the OTLPAwsLogExporter
1024
1021
mock_exporter = MagicMock (spec = OTLPAwsLogExporter )
1025
1022
You can’t perform that action at this time.
0 commit comments