未验证 提交 408bd3db 编写于 作者: Z zifeihan 提交者: GitHub

Fix okhttp-3.x and async-http-client-2.x did not overwrite the old trace header. (#5917)

* Fix okhttp-3.x and async-http-client-2.x did not overwrite the old trace header.
上级 fdee0017
......@@ -65,7 +65,7 @@ public class ExecuteInterceptor implements InstanceMethodsAroundInterceptor {
CarrierItem next = contextCarrier.items();
while (next.hasNext()) {
next = next.next();
headers.add(next.getHeadKey(), next.getHeadValue());
headers.set(next.getHeadKey(), next.getHeadValue());
}
}
......
......@@ -78,7 +78,7 @@ public class AsyncCallInterceptor implements InstanceConstructorInterceptor, Ins
CarrierItem next = contextCarrier.items();
while (next.hasNext()) {
next = next.next();
headerBuilder.add(next.getHeadKey(), next.getHeadValue());
headerBuilder.set(next.getHeadKey(), next.getHeadValue());
}
headersField.set(request, headerBuilder.build());
......
......@@ -23,6 +23,7 @@ Release Notes.
* Fix the default ignore mechanism isn't accurate enough bug.
* Add the plugin for spring-kafka 1.3.x.
* Add the plugin for Apache CXF 3.x.
* Fix okhttp-3.x and async-http-client-2.x did not overwrite the old trace header.
#### OAP-Backend
* Add the `@SuperDataset` annotation for BrowserErrorLog.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册