def get_query_trace(self, max_wait=None, query_cl=ConsistencyLevel.LOCAL_ONE):
        """
        Fetches and returns the query trace of the last response, or `None` if tracing was
        not enabled.

        Note that this may raise an exception if there are problems retrieving the trace
        details from Cassandra. If the trace is not available after `max_wait`,
        :exc:`cassandra.query.TraceUnavailable` will be raised.

        `query_cl` is the consistency level used to poll the trace tables.
        """
        if self._query_traces:
            return self._get_query_trace(len(self._query_traces) - 1, max_wait, query_cl)
dataset/ETHPy150Open datastax/python-driver/cassandra/cluster.py/ResponseFuture.get_query_trace/original