diff --git a/src/test/integration/logging/tests/test_logging.py b/src/test/integration/logging/tests/test_logging.py index 8d39c922..ecb2b7bc 100644 --- a/src/test/integration/logging/tests/test_logging.py +++ b/src/test/integration/logging/tests/test_logging.py @@ -60,10 +60,9 @@ def test_logging_enabled(self): ) for log in logs: - # "resource" is currently not a proper dictionary, but a string from a repr(...) call over the resource attributes. - # Pending a fix in https://github.com/open-telemetry/opentelemetry-python/pull/3346 - self.assertIn("'service.name': 'logging-app'", log["resource"]) - # self.assertEqual(log["resource"]["service.name"], "logging-app") + self.assertEqual( + log["resource"]["attributes"]["service.name"], "logging-app" + ) self.assertIn("attributes", logs[0])