1
0
mirror of https://github.com/apple/foundationdb.git synced 2025-05-24 08:09:58 +08:00

Add IP address and port to serialized spans

This commit is contained in:
Lukas Joswiak 2020-11-17 14:36:43 -08:00
parent 98e6ba6962
commit ecdb96a7b9

@ -175,10 +175,12 @@ protected:
// fluentd filter to be able to correctly parse the updated format! See // fluentd filter to be able to correctly parse the updated format! See
// the msgpack specification for more info on the bit patterns used // the msgpack specification for more info on the bit patterns used
// here. // here.
uint8_t size = 5; uint8_t size = 6;
if (span.parents.size() == 0) --size; if (span.parents.size() == 0) --size;
request.write_byte(size | 0b10010000); // write as array request.write_byte(size | 0b10010000); // write as array
serialize_string(g_network->getLocalAddress().toString(), request);
serialize_string(span.context.toString(), request); serialize_string(span.context.toString(), request);
serialize_value(span.begin, request, 0xcb); serialize_value(span.begin, request, 0xcb);