class TraceRequestInterceptor implements HttpRequestInterceptor {

  public void process(org.apache.http.HttpRequest request, HttpContext context) throws HttpException, IOException {
    TraceContext traceContext = interceptor.process(new RequestAdapter(request));
    request.addHeader(SpanContextFactory.headerKey(),
        SpanContextFactory.toHeader(traceContext.getHandle().getCurrentSpanContext()));
    context.setAttribute(TraceInterceptorUtil.TRACE_CONTEXT_KEY, traceContext);
  }

  public  TraceRequestInterceptor();
  public  TraceRequestInterceptor(TraceHttpRequestInterceptor interceptor);

}