Pymongo capture collection name (#1555)

This commit is contained in:
avzis
2023-01-11 14:47:54 +02:00
committed by GitHub
parent d1dec9220b
commit 70187ff3a3
3 changed files with 11 additions and 1 deletions

View File

@ -68,6 +68,10 @@ class TestFunctionalPymongo(TestBase):
self.assertEqual(
pymongo_span.attributes[SpanAttributes.NET_PEER_PORT], MONGODB_PORT
)
self.assertEqual(
pymongo_span.attributes[SpanAttributes.DB_MONGODB_COLLECTION],
MONGODB_COLLECTION_NAME,
)
def test_insert(self):
"""Should create a child span for insert"""