Skip to content

Commit 13e6efe

Browse files
author
Eugene Orlovsky
committed
fixing test_logging
related to fix in open-telemetry/opentelemetry-python#3346
1 parent 212b0e0 commit 13e6efe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/integration/logging/tests/test_logging.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ def test_logging_enabled(self):
6060
)
6161

6262
for log in logs:
63-
# "resource" is currently not a proper dictionary, but a string from a repr(...) call over the resource attributes.
64-
# Pending a fix in https://github.com/open-telemetry/opentelemetry-python/pull/3346
65-
self.assertIn("'service.name': 'logging-app'", log["resource"])
66-
# self.assertEqual(log["resource"]["service.name"], "logging-app")
63+
self.assertEqual(
64+
log["resource"]["attributes"]["service.name"], "logging-app"
65+
)
6766

6867
self.assertIn("attributes", logs[0])
6968

0 commit comments

Comments
 (0)