We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212b0e0 commit 13e6efeCopy full SHA for 13e6efe
src/test/integration/logging/tests/test_logging.py
@@ -60,10 +60,9 @@ def test_logging_enabled(self):
60
)
61
62
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")
+ self.assertEqual(
+ log["resource"]["attributes"]["service.name"], "logging-app"
+ )
67
68
self.assertIn("attributes", logs[0])
69
0 commit comments