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: Dse
Assembly: Dse.dll
Syntax
public class QueryTrace
Constructors
QueryTrace(Guid, ISession)
Declaration
public QueryTrace(Guid traceId, ISession session)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | traceId | |
ISession | session |
Properties
ClientAddress
Source address of the query.
Declaration
public IPAddress ClientAddress { get; }
Property Value
Type | Description |
---|---|
System.Net.IPAddress |
Coordinator
The coordinator host of the query.
Declaration
public IPAddress Coordinator { get; }
Property Value
Type | Description |
---|---|
System.Net.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 |
---|---|
System.Int32 | 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 |
---|---|
System.Collections.Generic.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 |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | The parameters attached to this trace. This method returns |
RequestType
The type of request.
Declaration
public string RequestType { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Int64 | 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 |
---|---|
System.Guid | the identifier of this trace. |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |