RequestContext serverRequestContext = new RequestContext();
serverRequestContext.setRequestTracingContext(serverTracingContext);
executorRequest.setRequestContext(Optional.of(serverRequestContext));</BUG>
ServerRequestInterceptor<TaskRequestWrapper, TaskResult> serverRequestInterceptor = new ServerRequestInterceptor<TaskRequestWrapper, TaskResult>();
List<TraceFilter> traceFilters = Arrays.<TraceFilter>asList(this.traceFilter);
<BUG>ServerTracer serverTracer = serverTracingContext.getServerTracer(this.eventDispatchingSpanCollector, traceFilters);

serverRequestInterceptor.setEndPointSubmitter(serverTracingContext.getEndPointSubmitter());
</BUG>
serverRequestInterceptor.setServerTracer(serverTracer);

RequestContext serverRequestContext = new RequestContext();
serverRequestContext.setCurrentServerSpan(serverSpan);
executorRequest.setRequestContext(Optional.of(serverRequestContext));
ServerRequestInterceptor<TaskRequestWrapper, TaskResult> serverRequestInterceptor = new ServerRequestInterceptor<TaskRequestWrapper, TaskResult>();
List<TraceFilter> traceFilters = Arrays.<TraceFilter>asList(this.traceFilter);
ServerTracer serverTracer = Brave.getServerTracer(this.eventDispatchingSpanCollector, traceFilters);
serverRequestInterceptor.setEndPointSubmitter(Brave.getEndPointSubmitter());
serverRequestInterceptor.setServerTracer(serverTracer);
