rsocket-rpc-java icon indicating copy to clipboard operation
rsocket-rpc-java copied to clipboard

Tracing.mapToByteBuf uses wrong value length for writing to byteBuf

Open creiterer opened this issue 4 years ago • 0 comments

Encoding the baggage items of a span context using DefaultMetadataEncoder.encode() can lead to an error if the baggage items are too huge to fit in the default buffer capacity (which seems to be 256). The problem is that Tracing.mapToByteBuf uses keyLength instead of valueLength for writing value to byteBuf: https://github.com/rsocket/rsocket-rpc-java/blob/c3c47723ad85af9c7ba2edbf27494c7f1835a893/rsocket-ipc-core/src/main/java/io/rsocket/ipc/tracing/Tracing.java#L80

creiterer avatar Jun 08 '21 09:06 creiterer