Skip to content

Commit 8176440

Browse files
committed
test fix
1 parent 9ac68a1 commit 8176440

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _init_logging(
180180
# Provides a default OTLP log exporter when none is specified.
181181
# This is the behavior for the logs exporters for other languages.
182182
if not exporters:
183-
exporters.setdefault("otlp", OTLPLogExporter)
183+
exporters = {"otlp": OTLPLogExporter}
184184

185185
provider = LoggerProvider(resource=resource)
186186
set_logger_provider(provider)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def capture_exporter(*args, **kwargs):
503503

504504
test_cases = [
505505
[{"otlp": OTLPLogExporter}, OTLPLogExporter],
506-
[{}, OTLPLogExporter],
506+
[{}, OTLPLogExporter],
507507
]
508508

509509
os.environ[OTEL_EXPORTER_OTLP_LOGS_ENDPOINT] = "https://logs.us-east-1.amazonaws.com/v1/logs"

0 commit comments

Comments
 (0)