Skip to content

Commit

Permalink
Do not exclude other keys in the carrier of TextMapSetter
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-ai committed Oct 20, 2022
1 parent 94cc372 commit a2839d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum MapSetter implements TextMapSetter<PublishingMessageImpl> {

@Override
public void set(@Nullable PublishingMessageImpl carrier, String key, String value) {
if (null == carrier || !"traceparent".equals(key)) {
if (null == carrier) {
return;
}
carrier.setTraceContext(value);
Expand Down

0 comments on commit a2839d9

Please sign in to comment.