Class QueryTrace
The Cassandra trace for a query.
The trace is generated by Cassandra when query tracing is enabled for the query. The trace itself is stored in
Cassandra in the sessions
and events
table in the system_traces
keyspace and can be
retrieve manually using the trace identifier (the one returned by TraceId).
Inheritance
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class QueryTrace
Constructors
QueryTrace(Guid, ISession)
Declaration
public QueryTrace(Guid traceId, ISession session)
Parameters
Type | Name | Description |
---|---|---|
Guid | traceId | |
ISession | session |
Properties
ClientAddress
Source address of the query.
Declaration
public IPAddress ClientAddress { get; }
Property Value
Type | Description |
---|---|
IPAddress |
Coordinator
The coordinator host of the query.
Declaration
public IPAddress Coordinator { get; }
Property Value
Type | Description |
---|---|
IPAddress | The coordinator host of the query. This method returns |
DurationMicros
The (server side) duration of the query in microseconds.
Declaration
public int DurationMicros { get; }
Property Value
Type | Description |
---|---|
int | The (server side) duration of the query in microseconds. This method will return |
Events
The events contained in this trace.
Declaration
public List<QueryTrace.Event> Events { get; }
Property Value
Type | Description |
---|---|
List<QueryTrace.Event> | The events contained in this trace. |
Parameters
The parameters attached to this trace.
Declaration
public IDictionary<string, string> Parameters { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> | The parameters attached to this trace. This method returns |
RequestType
The type of request.
Declaration
public string RequestType { get; }
Property Value
Type | Description |
---|---|
string | the type of request. This method returns |
StartedAt
The server side timestamp of the start of this query.
Declaration
public long StartedAt { get; }
Property Value
Type | Description |
---|---|
long | The server side timestamp of the start of this query. This method returns 0 if the start timestamp is not available. |
TraceId
The identifier of this trace.
Declaration
public Guid TraceId { get; }
Property Value
Type | Description |
---|---|
Guid | the identifier of this trace. |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |