Example #1
0
 def enable_instrumentation(self):
     # This is thread-safe because database connections are thread-local.
     for connection in connections.all():
         wrap_cursor(connection, self)
Example #2
0
 def enable_instrumentation(self):
     # This is thread-safe because database connections are thread-local.
     for connection in connections.all():
         wrap_cursor(connection, self)