code: def snapshot_statistics(self):
          
          with self._lock:
  
              stats = {
                  'request_count': self.request_count,
                  'borrow_count': self.borrow_count,
                  'sampled_count': self.sampled_count,
              }
  
              self._reset_statistics()
              return stats
docs: Take a snapshot of request/borrow/sampled count for reporting
          back to X-Ray back-end by ``TargetPoller`` and reset those counters.