code: def trace(self, data, callback=None):
          
  
          conn_id = self._find_connection(self.conn_string)
  
          if conn_id is not None:
              self.adapter.notify_event_nowait(self.conn_string, 'trace', data)
  
          if callback is not None:
              callback(conn_id is not None)
docs: Queue data for tracing
  
          Args:
              data (bytearray, string): Unstructured data to trace to any
                  connected client.
              callback (callable): An optional callback that will be called with
                  a bool value of True when this data actually gets traced.
                  If the client disconnects and the data is dropped instead,
                  callback will be called with False.