Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert unsigned IDs to signed IDs for Thrift
Fixes jaegertracing/jaeger#1951 Thrift IDs are i64, which is a _signed_ 64-bit integer, but the Jaeger protocol says IDs are unsigned, so in our records we store them unsigned. When sending the IDs through Thrift, we need to convert the bits directly from unsigned to signed. This matches the behavior in the Python client (https://github.com/jaegertracing/jaeger-client-python/blob/51d9027c3e0b87f6721dd14e7bc2b3303ce682c2/jaeger_client/thrift.py#L32-L47) as pointed out here (jaegertracing/jaeger#1951 (comment)), but we get to use type specifiers to make it clearer (:tada: Erlang!) instead of bit shifts and masking that Python needs to do.
- Loading branch information