def append_measurement(payload, table, measure)
      op = op_for_measurement(measure)
      common_tags = @registry.common_tags
      tags = measure.id.tags
      len = tags.length + 1 + common_tags.length
      payload.push(len)
      common_tags.each do |k, v|
        payload.push(table[k])
        payload.push(table[v])
      end
      tags.each do |k, v|
        payload.push(table[k])
        payload.push(table[v])
      end
      payload.push(table[:name])
      payload.push(table[measure.id.name])
      payload.push(op)
      payload.push(measure.value)
    end
def append_measurement(payload, table, measure)
      op = op_for_measurement(measure)
      common_tags = @registry.common_tags
      tags = measure.id.tags
      len = tags.length + 1 + common_tags.length
      payload.push(len)
      common_tags.each do |k, v|
        payload.push(table[k])
        payload.push(table[v])
      end
      tags.each do |k, v|
        payload.push(table[k])
        payload.push(table[v])
      end
      payload.push(table[:name])
      payload.push(table[measure.id.name])
      payload.push(op)
      payload.push(measure.value)
    end
Add a measurement to our payload table.
 The serialization for a measurement is:
  - length of tags
  - indexes for the tags based on the string table
  - operation (add (0), max (10))
  - floating point value