cassandradatastax-enterprise

Does the source_elapsed in a CQL trace output show when a command starts or finishes?


On the official DataStax page https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlshTracing.html, it is not very clear what the source_elapsed is trying to say in regards to individuals commands.

Say for example, if we wanted to know when the "submitted 1 concurrent range" is finished (within the link above), would it be at the timestamp 3002 to 3130?

If it was 3002, would we then say it took 3002-1632 time to complete? Obviously can switch the numbers up but just wanted some clarification.


Solution

  • source_elapsed is the time in microseconds that have gone by since the beginning of the query trace.

    If it was 3002, would we then say it took 3002-1632 time to complete?

    Yes, that is correct. So the "submitted 1 concurrent range" operation took 1370 microseconds or 1.37 milliseconds.