From 9d7a2fc4134efa22ff833d6bc91bcb9c9bb21ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=BC=A0?= Date: Wed, 11 Sep 2024 16:04:34 +0800 Subject: [PATCH] support transfer requestTemplate --- .../springcloud/instruments/feign/SofaTracerFeignClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sofa-tracer-plugins/sofa-tracer-spring-cloud-plugin/src/main/java/com/alipay/sofa/tracer/plugins/springcloud/instruments/feign/SofaTracerFeignClient.java b/sofa-tracer-plugins/sofa-tracer-spring-cloud-plugin/src/main/java/com/alipay/sofa/tracer/plugins/springcloud/instruments/feign/SofaTracerFeignClient.java index 8c016b61..289944de 100644 --- a/sofa-tracer-plugins/sofa-tracer-spring-cloud-plugin/src/main/java/com/alipay/sofa/tracer/plugins/springcloud/instruments/feign/SofaTracerFeignClient.java +++ b/sofa-tracer-plugins/sofa-tracer-spring-cloud-plugin/src/main/java/com/alipay/sofa/tracer/plugins/springcloud/instruments/feign/SofaTracerFeignClient.java @@ -65,7 +65,7 @@ public Response execute(Request request, Request.Options options) { appendRequestSpanTagsAndInject(request, sofaTracerSpan, headers); // renew request with the headers that have been injected into the carrier request = Request.create(request.httpMethod(), request.url(), headers, request.body(), - request.charset()); + request.charset(), request.requestTemplate()); Response response = delegate.execute(request, options); // set result tags appendResponseSpanTags(response, sofaTracerSpan);