MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / get_all_query_traces

Method get_all_query_traces

cassandra/cluster.py:5042–5050  ·  view source on GitHub ↗

Fetches and returns the query traces for all query pages, if tracing was enabled. See note in :meth:`~.get_query_trace` regarding possible exceptions.

(self, max_wait_per=None, query_cl=ConsistencyLevel.LOCAL_ONE)

Source from the content-addressed store, hash-verified

5040 return self._get_query_trace(len(self._query_traces) - 1, max_wait, query_cl)
5041
5042 def get_all_query_traces(self, max_wait_per=None, query_cl=ConsistencyLevel.LOCAL_ONE):
5043 """
5044 Fetches and returns the query traces for all query pages, if tracing was enabled.
5045
5046 See note in :meth:`~.get_query_trace` regarding possible exceptions.
5047 """
5048 if self._query_traces:
5049 return [self._get_query_trace(i, max_wait_per, query_cl) for i in range(len(self._query_traces))]
5050 return []
5051
5052 def _get_query_trace(self, i, max_wait, query_cl):
5053 trace = self._query_traces[i]

Callers

nothing calls this directly

Calls 1

_get_query_traceMethod · 0.95

Tested by

no test coverage detected