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.
This commit is contained in:
parent
fdee001788
commit
408bd3db5c
|
|
@ -65,7 +65,7 @@ public class ExecuteInterceptor implements InstanceMethodsAroundInterceptor {
|
||||||
CarrierItem next = contextCarrier.items();
|
CarrierItem next = contextCarrier.items();
|
||||||
while (next.hasNext()) {
|
while (next.hasNext()) {
|
||||||
next = next.next();
|
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();
|
CarrierItem next = contextCarrier.items();
|
||||||
while (next.hasNext()) {
|
while (next.hasNext()) {
|
||||||
next = next.next();
|
next = next.next();
|
||||||
headerBuilder.add(next.getHeadKey(), next.getHeadValue());
|
headerBuilder.set(next.getHeadKey(), next.getHeadValue());
|
||||||
}
|
}
|
||||||
headersField.set(request, headerBuilder.build());
|
headersField.set(request, headerBuilder.build());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ Release Notes.
|
||||||
* Fix the default ignore mechanism isn't accurate enough bug.
|
* Fix the default ignore mechanism isn't accurate enough bug.
|
||||||
* Add the plugin for spring-kafka 1.3.x.
|
* Add the plugin for spring-kafka 1.3.x.
|
||||||
* Add the plugin for Apache CXF 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
|
#### OAP-Backend
|
||||||
* Add the `@SuperDataset` annotation for BrowserErrorLog.
|
* Add the `@SuperDataset` annotation for BrowserErrorLog.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue