Uploaded image for project: 'HTrace'
  1. HTrace
  2. HTRACE-32

Change span timeline annotations map to be a map<string, string>

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • None

    Description

      We should consider changing the timeline annotations in Span.java to be a map<string, string> rather than a map<byte[], byte[]>. It's very inconvenient to deal with byte arrays here, and every use-case we have currently puts string data into these fields. One example is that you cannot look up fields in the map, since the map<byte[], byte[]> compares by byte array object equality (useless unless you have the original key array object you inserted). It's also questionable if we could put non-string data in this map at all, since we are serializing them to JSON strings, which can't handle arbitrary byte strings.

      Attachments

        1. HTRACE-32.001.patch
          13 kB
          Colin McCabe

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Slack

                  Issue deployment