Skip to content

Commit

Permalink
[fix][plugin-rocketmq] Fix agent tracing lost property separator (erd…
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsl-gr committed Jul 5, 2022
1 parent 529c918 commit 73f3193
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ public void beforeMethod(IMethodInterceptContext context, MethodInterceptResult
tracer.inject(span.getContext(), carrier);

SendMessageRequestHeader requestHeader = (SendMessageRequestHeader) context.getArguments()[3];
StringBuilder properties = new StringBuilder(requestHeader.getProperties());
StringBuilder properties = new StringBuilder();
String originalProperties = requestHeader.getProperties();
if(originalProperties != null && !originalProperties.isEmpty()) {
properties.append(originalProperties);
properties.append(MessageDecoder.PROPERTY_SEPARATOR);
}
for (Map.Entry<String, String> entry : map.entrySet()) {
if (entry.getValue() == null) {
continue;
Expand Down

0 comments on commit 73f3193

Please sign in to comment.