RpcTracing implements Closeable { public Builder toBuilder() { return new Builder(this); } RpcTracing(Builder builder); static RpcTracing create(Tracing tracing); static Builder newBuilder(Tracing tracing); Tracing tracing(); RpcRequestParser clientRequestParser(); RpcResponseParser clientResponseParser(); RpcRequestParser serverRequestParser(); RpcResponseParser serverResponseParser(); SamplerFunction<RpcRequest> clientSampler(); SamplerFunction<RpcRequest> serverSampler(); Builder toBuilder(); @Nullable static RpcTracing current(); @Override void close();  }
@Test public void toBuilder() { RpcTracing rpcTracing = RpcTracing.newBuilder(tracing).build(); assertThat(rpcTracing.toBuilder().build()) .usingRecursiveComparison() .isEqualTo(rpcTracing); assertThat(rpcTracing.toBuilder().clientSampler(neverSample()).build()) .usingRecursiveComparison() .isEqualTo(RpcTracing.newBuilder(tracing).clientSampler(neverSample()).build()); }