@Test public void testNoTrace() throws Exception { Sample instance = new Sample(); Repeat proxy = traceProxyFactory.createProxy(instance, Repeat.class); Assert.assertEquals("xx", proxy.echo("xx")); Assert.assertNull(tracer.getCapturedSpan()); }
@SneakyThrows public <T> T createProxy(final T instance, Class<T> iface) { return (T)createProxy(instance, new Class[]{iface}); }
TraceProxyFactory { @SneakyThrows public <T> T createProxy(final T instance, Class<T> iface) { return (T)createProxy(instance, new Class[]{iface}); } }
TraceProxyFactory { @SneakyThrows public <T> T createProxy(final T instance, Class<T> iface) { return (T)createProxy(instance, new Class[]{iface}); }  }
TraceProxyFactory { @SneakyThrows public <T> T createProxy(final T instance, Class<T> iface) { return (T)createProxy(instance, new Class[]{iface}); }  @SneakyThrows T createProxy(final T instance, Class<T> iface); @SneakyThrows Object createProxy(final Object instance, Class<?>... ifaces); }
TraceProxyFactory { @SneakyThrows public <T> T createProxy(final T instance, Class<T> iface) { return (T)createProxy(instance, new Class[]{iface}); }  @SneakyThrows T createProxy(final T instance, Class<T> iface); @SneakyThrows Object createProxy(final Object instance, Class<?>... ifaces);  }