Skip to content

Commit 53d7c3c

Browse files
authored
Review fixes for okhttp-2.2:javaagent (open-telemetry#17557)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
1 parent 4ebc0b4 commit 53d7c3c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

instrumentation/okhttp/okhttp-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/okhttp/v2_2/OkHttp2Singletons.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public final class OkHttp2Singletons {
1818
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.okhttp-2.2";
1919

2020
private static final Instrumenter<Request, Response> instrumenter;
21-
private static final TracingInterceptor TRACING_INTERCEPTOR;
21+
private static final TracingInterceptor tracingInterceptor;
2222

2323
public static final VirtualField<Runnable, PropagatedContext> PROPAGATED_CONTEXT =
2424
VirtualField.find(Runnable.class, PropagatedContext.class);
@@ -28,12 +28,12 @@ public final class OkHttp2Singletons {
2828
JavaagentHttpClientInstrumenters.create(
2929
INSTRUMENTATION_NAME, new OkHttp2HttpAttributesGetter());
3030

31-
TRACING_INTERCEPTOR =
31+
tracingInterceptor =
3232
new TracingInterceptor(instrumenter, GlobalOpenTelemetry.get().getPropagators());
3333
}
3434

3535
public static Interceptor tracingInterceptor() {
36-
return TRACING_INTERCEPTOR;
36+
return tracingInterceptor;
3737
}
3838

3939
private OkHttp2Singletons() {}

instrumentation/okhttp/okhttp-2.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/okhttp/v2_2/TracingInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1515
import java.io.IOException;
1616

17-
public class TracingInterceptor implements Interceptor {
17+
public final class TracingInterceptor implements Interceptor {
1818
private final Instrumenter<Request, Response> instrumenter;
1919
private final ContextPropagators propagators;
2020

0 commit comments

Comments
 (0)