Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • java
    • None
    • Reviewed

    Description

      For stats/monitoring it is helpful to see how many bytes are encoded for a given RPC call. Right now Encoder's don't track how many payload bytes are actually written out when encoding is done.

      Ideally this bytesWritten() would be in Encoder interface, however not sure JSON plugin can track the number of characters actually written, so alternatively just could be added to BinaryEncoder, and stats plugin will only provide payload sizes when that encoder is used.

      Attachments

        1. AVRO-578.patch.v5
          15 kB
          Patrick Wendell
        2. AVRO-578.patch.v4
          15 kB
          Patrick Wendell
        3. AVRO-578.patch.v3
          13 kB
          Patrick Wendell
        4. AVRO-578.patch.v2
          9 kB
          Patrick Wendell
        5. AVRO-578.patch
          5 kB
          Patrick Wendell

        Issue Links

          Activity

            People

              pwendell Patrick Wendell
              pwendell Patrick Wendell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: