Update asyncpg docker tests
@@ -54,6 +54,7 @@ class TestFunctionalAsyncPG(TestBase):
self.assertEqual(len(spans), 1)
self.assertIs(StatusCode.UNSET, spans[0].status.status_code)
self.check_span(spans[0])
+ self.assertEqual(spans[0].name, "SELECT 42;")
self.assertEqual(spans[0].attributes["db.statement"], "SELECT 42;")
def test_instrumented_fetch_method_without_arguments(self, *_, **__):
@@ -156,6 +157,7 @@ class TestFunctionalAsyncPG_CaptureParameters(TestBase):
self.assertIs(StatusCode.UNSET, spans[0].status.status_code)
self.check_span(spans[0])
+ self.assertEqual(spans[0].name, "SELECT $1;")
self.assertEqual(spans[0].attributes["db.statement"], "SELECT $1;")
self.assertEqual(
spans[0].attributes["db.statement.parameters"], "('1',)"
