mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 14:11:50 +08:00
Pymongo capture collection name (#1555)
This commit is contained in:
@ -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"""
|
||||
|
Reference in New Issue
Block a user