Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeniyk committed Jan 27, 2022
1 parent 4f22154 commit f748538
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public final class GrpcTracingBuilder {

private final OpenTelemetry openTelemetry;
@Nullable private String peerService;
@Nullable private SpanNameExtractor<GrpcRequest> clientSpanNameExtractor;
@Nullable private SpanNameExtractor<GrpcRequest> serverSpanNameExtractor;
@Nullable private SpanNameExtractor<? super GrpcRequest> clientSpanNameExtractor;
@Nullable private SpanNameExtractor<? super GrpcRequest> serverSpanNameExtractor;

private final List<AttributesExtractor<? super GrpcRequest, ? super Status>>
additionalExtractors = new ArrayList<>();
Expand Down Expand Up @@ -89,12 +89,12 @@ public GrpcTracingBuilder setCaptureExperimentalSpanAttributes(

/** Returns a new {@link GrpcTracing} with the settings of this {@link GrpcTracingBuilder}. */
public GrpcTracing build() {
SpanNameExtractor<GrpcRequest> clientSpanNameExtractor = this.clientSpanNameExtractor;
SpanNameExtractor<? super GrpcRequest> clientSpanNameExtractor = this.clientSpanNameExtractor;
if (clientSpanNameExtractor == null) {
clientSpanNameExtractor = new GrpcSpanNameExtractor();
}

SpanNameExtractor<GrpcRequest> serverSpanNameExtractor = this.serverSpanNameExtractor;
SpanNameExtractor<? super GrpcRequest> serverSpanNameExtractor = this.serverSpanNameExtractor;
if (serverSpanNameExtractor == null) {
serverSpanNameExtractor = new GrpcSpanNameExtractor();
}
Expand Down

0 comments on commit f748538

Please sign in to comment.