HttpTracing implements Closeable { public Builder toBuilder() { return new Builder(this); } HttpTracing(Builder builder); static HttpTracing create(Tracing tracing); static Builder newBuilder(Tracing tracing); Tracing tracing(); HttpRequestParser clientRequestParser(); HttpResponseParser clientResponseParser(); @Deprecated HttpClientParser clientParser(); String serverName(); HttpTracing clientOf(String serverName); HttpRequestParser serverRequestParser(); HttpResponseParser serverResponseParser(); @Deprecated HttpServerParser serverParser(); @Deprecated HttpSampler clientSampler(); SamplerFunction<HttpRequest> clientRequestSampler(); @Deprecated HttpSampler serverSampler(); SamplerFunction<HttpRequest> serverRequestSampler(); Builder toBuilder(); @Nullable static HttpTracing current(); @Override void close();  }
@Test public void toBuilder() { HttpTracing rpcTracing = HttpTracing.newBuilder(tracing).build(); assertThat(rpcTracing.toBuilder().build()) .usingRecursiveComparison() .isEqualTo(rpcTracing); assertThat(rpcTracing.toBuilder().clientSampler(neverSample()).build()) .usingRecursiveComparison() .isEqualTo(HttpTracing.newBuilder(tracing).clientSampler(neverSample()).build()); }