class TraceHttpResponseInterceptor {

  public void process(HttpResponse response, TraceContext traceContext) {
    if (traceContext == null) {
      return;
    }
    Labels.Builder labels = Labels.builder();
    TraceInterceptorUtil.annotateIfNotEmpty(labels, HttpLabels.RESPONSE_SIZE,
        response.getHeader(HttpHeaders.CONTENT_LENGTH));
    labels.add(HttpLabels.HTTP_STATUS_CODE, Integer.toString(response.getStatus()));
    tracer.annotateSpan(traceContext, labels.build());
    tracer.endSpan(traceContext);
  }

  public  TraceHttpResponseInterceptor();
  public  TraceHttpResponseInterceptor(Tracer tracer);

}