@Test public void testRefererFilter() { Response res = OTFilter.filter(refer, request); assertEquals(response, res); checkMockTracer(); }
@Override public Response filter(Caller<?> caller, Request request) { Tracer tracer = getTracer(); if (tracer == null || tracer instanceof NoopTracer) { return caller.call(request); } if (caller instanceof Provider) { return processProviderTrace(tracer, caller, request); } else { return processRefererTrace(tracer, caller, request); } }
OpenTracingFilter implements Filter { @Override public Response filter(Caller<?> caller, Request request) { Tracer tracer = getTracer(); if (tracer == null || tracer instanceof NoopTracer) { return caller.call(request); } if (caller instanceof Provider) { return processProviderTrace(tracer, caller, request); } else { return processRefererTrace(tracer, caller, request); } } }
OpenTracingFilter implements Filter { @Override public Response filter(Caller<?> caller, Request request) { Tracer tracer = getTracer(); if (tracer == null || tracer instanceof NoopTracer) { return caller.call(request); } if (caller instanceof Provider) { return processProviderTrace(tracer, caller, request); } else { return processRefererTrace(tracer, caller, request); } }  }
OpenTracingFilter implements Filter { @Override public Response filter(Caller<?> caller, Request request) { Tracer tracer = getTracer(); if (tracer == null || tracer instanceof NoopTracer) { return caller.call(request); } if (caller instanceof Provider) { return processProviderTrace(tracer, caller, request); } else { return processRefererTrace(tracer, caller, request); } }  @Override Response filter(Caller<?> caller, Request request); }
OpenTracingFilter implements Filter { @Override public Response filter(Caller<?> caller, Request request) { Tracer tracer = getTracer(); if (tracer == null || tracer instanceof NoopTracer) { return caller.call(request); } if (caller instanceof Provider) { return processProviderTrace(tracer, caller, request); } else { return processRefererTrace(tracer, caller, request); } }  @Override Response filter(Caller<?> caller, Request request);  }