-
Couldn't load subscription status.
- Fork 44
Open
Description
In rule/feign/src/main/java/io/opentracing/contrib/specialagent/rule/feign/FeignAgentIntercept.java:
private static Request inject(final Tracer tracer, final SpanContext spanContext, final Request request) {
final HashMap<String,Collection<String>> headersWithTracingContext = new HashMap<>(request.headers());
tracer.inject(spanContext, Format.Builtin.HTTP_HEADERS, new HttpHeadersInjectAdapter(headersWithTracingContext));
return Request.create(request.method(), request.url(), headersWithTracingContext, request.body(), request.charset());
}
The ending return statement calls the Request.create, which is a deprecated method for the latest feign-core, and it will create a Request with requestTemplate = null, and when others try to use the RequestTemplate to revise the Request later, it will throw a NPE.
Metadata
Metadata
Assignees
Labels
No labels