Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4862

Include session information in tracing activity output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.0 beta 2
    • None
    • None

    Description

      Would like something like this:

      activity | timestamp | source | source_elapsed
      ---------------------------------------------------------+---------------
      execute_cql3_query | 09:57:27,290 | 127.0.0.1 | 0
      Determining replicas for mutation | 09:57:27,290 | 127.0.0.1 | 2465
      Sending message to /127.0.0.2 | 09:57:27,294 | 127.0.0.1 | 7105
      Messsage received from /127.0.0.1 | 09:57:27,296 | 127.0.0.2 | 62
      Applying mutation | 09:57:27,298 | 127.0.0.2 | 1246
      Acquiring switchLock | 09:57:27,298 | 127.0.0.2 | 1353
      Appending to commitlog | 09:57:27,298 | 127.0.0.2 | 1378
      Adding to memtable | 09:57:27,298 | 127.0.0.2 | 1439
      Enqueuing response to /127.0.0.1 | 09:57:27,298 | 127.0.0.2 | 1892
      Messsage received from /127.0.0.2 | 09:57:27,301 | 127.0.0.1 | 14493
      Sending message to /127.0.0.1 | 09:57:27,301 | 127.0.0.2 | 4527
      Processing response from /127.0.0.2 | 09:57:27,302 | 127.0.0.1 | 15072
      Request complete | 09:57:27,302 | 127.0.0.1 | 15100

      
      

      ... where first and last lines are coming from the sessions table.

      Note that currently session table records started_at and finished_at; this will require also recording duration from the stopwatch.

      Attachments

        1. CASSANDRA-4862-v2.txt
          15 kB
          Aleksey Yeschenko

        Activity

          People

            aleksey Aleksey Yeschenko
            jbellis Jonathan Ellis
            Aleksey Yeschenko
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: