You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@htrace.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2014/12/30 21:30:13 UTC

[jira] [Created] (HTRACE-32) Consider changing timeline annotations to be a map

Colin Patrick McCabe created HTRACE-32:
------------------------------------------

             Summary: Consider changing timeline annotations to be a map<string, string>
                 Key: HTRACE-32
                 URL: https://issues.apache.org/jira/browse/HTRACE-32
             Project: HTrace
          Issue Type: Bug
            Reporter: Colin Patrick McCabe


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)