public interface QueryTrace
When tracing
is enabled for a query, Cassandra generates rows in
the sessions
and events
table of the system_traces
keyspace. This class
is a client-side representation of that information.
Modifier and Type | Method and Description |
---|---|
InetAddress |
getCoordinator()
The IP of the node that coordinated the query.
|
int |
getDurationMicros()
The server-side duration of the query in microseconds.
|
List<TraceEvent> |
getEvents()
The events contained in this trace.
|
Map<String,String> |
getParameters()
The parameters attached to this trace.
|
String |
getRequestType() |
long |
getStartedAt()
The server-side timestamp of the start of this query.
|
UUID |
getTracingId() |
@NonNull UUID getTracingId()
@NonNull String getRequestType()
int getDurationMicros()
@NonNull InetAddress getCoordinator()
long getStartedAt()
@NonNull List<TraceEvent> getEvents()
Query tracing is asynchronous in Cassandra. Hence, it is possible for the list returned to be missing some events for some of the replicas involved in the query if the query trace is requested just after the return of the query (the only guarantee being that the list will contain the events pertaining to the coordinator).
Copyright © 2017–2019. All rights reserved.