Skip to content

Commit c9e4c8f

Browse files
committed
fix agent observability env var typo in unit tests
1 parent 0978b57 commit c9e4c8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def test_customize_span_exporter(self):
313313

314314
def test_customize_span_exporter_with_agent_observability(self):
315315
# Test that logger_provider is passed when agent observability is enabled
316-
os.environ["AGENT_OBSERVABIILTY_ENABLED"] = "true"
316+
os.environ["AGENT_OBSERVABILITY_ENABLED"] = "true"
317317
os.environ[OTEL_EXPORTER_OTLP_TRACES_ENDPOINT] = "https://xray.us-east-1.amazonaws.com/v1/traces"
318318

319319
mock_logger_provider = MagicMock()
@@ -328,7 +328,7 @@ def test_customize_span_exporter_with_agent_observability(self):
328328
self.assertEqual(result._logger_provider, mock_logger_provider)
329329

330330
# Test that logger_provider is not passed when agent observability is disabled
331-
os.environ["AGENT_OBSERVABIILTY_ENABLED"] = "false"
331+
os.environ["AGENT_OBSERVABILITY_ENABLED"] = "false"
332332

333333
mock_exporter = MagicMock(spec=OTLPSpanExporter)
334334
result = _customize_span_exporter(mock_exporter, Resource.get_empty())
@@ -337,7 +337,7 @@ def test_customize_span_exporter_with_agent_observability(self):
337337
self.assertIsNone(result._logger_provider)
338338

339339
# Clean up
340-
os.environ.pop("AGENT_OBSERVABIILTY_ENABLED", None)
340+
os.environ.pop("AGENT_OBSERVABILITY_ENABLED", None)
341341
os.environ.pop(OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, None)
342342

343343
def test_customize_span_exporter_sigv4(self):

0 commit comments

Comments
 (0)