You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This just appends headers to the end of the list, and inject can happen repeatedly in processing a message. With baggage, this can result it a lot of repeated data.
We could instead headers.remove(key).add(key, value.getBytes(StandardCharsets.UTF_8)); which trades an iteration over all headers and potential arraylist removals for each key.
The text was updated successfully, but these errors were encountered:
https://github.com/opentracing-contrib/java-kafka-client/blob/release-0.1.15/opentracing-kafka-client/src/main/java/io/opentracing/contrib/kafka/HeadersMapInjectAdapter.java#L38
This just appends headers to the end of the list, and
inject
can happen repeatedly in processing a message. With baggage, this can result it a lot of repeated data.We could instead
headers.remove(key).add(key, value.getBytes(StandardCharsets.UTF_8));
which trades an iteration over all headers and potential arraylist removals for each key.The text was updated successfully, but these errors were encountered: