Skip to content

Commit

Permalink
Making TracingClientInterceptor.Builder constructor private (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
malafeev authored Mar 5, 2020
1 parent d95b851 commit e6f7911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public static class Builder {
private Map<Class<?>, ClientCloseDecorator> clientCloseDecorators;

/** Creates a Builder with GlobalTracer if present else NoopTracer. */
public Builder() {
private Builder() {
this.tracer = GlobalTracer.isRegistered() ? GlobalTracer.get() : NoopTracerFactory.create();
this.operationNameConstructor = OperationNameConstructor.DEFAULT;
this.streaming = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void testTracedClientTwoInterceptors() {
@Test
public void testTracedClientWithVerbosity() {
TracingClientInterceptor tracingInterceptor =
new TracingClientInterceptor.Builder().withTracer(clientTracer).withVerbosity().build();
TracingClientInterceptor.newBuilder().withTracer(clientTracer).withVerbosity().build();
TracedClient client = new TracedClient(grpcServer.getChannel(), tracingInterceptor);

assertEquals("call should complete successfully", "Hello world", client.greet().getMessage());
Expand Down

0 comments on commit e6f7911

Please sign in to comment.