Fixing bad instrumentation on mongo and redis logs.

This commit is contained in:
Samuel Clay 2022-03-07 15:57:51 -05:00
parent a4ae23c34f
commit 0e63da2d74
3 changed files with 2 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View file

@ -27,6 +27,7 @@ class MongoDumpMiddleware(object):
# save old methods
setattr(MongoClient, '_logging', True)
if hasattr(MongoClient, '_send_message_with_response'):
connection.queriesx = []
MongoClient._send_message_with_response = \
self._instrument(MongoClient._send_message_with_response)
MongoReplicaSetClient._send_message_with_response = \

View file

@ -19,6 +19,7 @@ class RedisDumpMiddleware(object):
if not getattr(Connection, '_logging', False):
# save old methods
setattr(Connection, '_logging', True)
connection.queriesx = []
Connection.pack_command = \
self._instrument(Connection.pack_command)