Skip to content

Tracing.mapToByteBuf uses wrong value length for writing to byteBuf #74

@creiterer

Description

@creiterer

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:

ByteBufUtil.reserveAndWriteUtf8(byteBuf, value, keyLength);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions