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

View File

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