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

Class QueryTrace

cassandra/query.py:869–1005  ·  view source on GitHub ↗

A trace of the duration and events that occurred when executing an operation.

Source from the content-addressed store, hash-verified

867
868
869class QueryTrace(object):
870 """
871 A trace of the duration and events that occurred when executing
872 an operation.
873 """
874
875 trace_id = None
876 """
877 :class:`uuid.UUID` unique identifier for this tracing session. Matches
878 the ``session_id`` column in ``system_traces.sessions`` and
879 ``system_traces.events``.
880 """
881
882 request_type = None
883 """
884 A string that very generally describes the traced operation.
885 """
886
887 duration = None
888 """
889 A :class:`datetime.timedelta` measure of the duration of the query.
890 """
891
892 client = None
893 """
894 The IP address of the client that issued this request
895
896 This is only available when using Cassandra 2.2+
897 """
898
899 coordinator = None
900 """
901 The IP address of the host that acted as coordinator for this request.
902 """
903
904 parameters = None
905 """
906 A :class:`dict` of parameters for the traced operation, such as the
907 specific query string.
908 """
909
910 started_at = None
911 """
912 A UTC :class:`datetime.datetime` object describing when the operation
913 was started.
914 """
915
916 events = None
917 """
918 A chronologically sorted list of :class:`.TraceEvent` instances
919 representing the steps the traced operation went through. This
920 corresponds to the rows in ``system_traces.events`` for this tracing
921 session.
922 """
923
924 _session = None
925
926 _SELECT_SESSIONS_FORMAT = "SELECT * FROM system_traces.sessions WHERE session_id = %s"

Callers 1

_set_resultMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected