From e8a61c30ab73207c7bef68fefb88134693705653 Mon Sep 17 00:00:00 2001 From: Mateusz Rzeszutek Date: Mon, 17 Jul 2023 11:52:33 +0200 Subject: [PATCH] add private --- .../v1_0/HttpResponseReceiverInstrumenter.java | 11 ++++++----- .../reactornetty/v1_0/InstrumentationContexts.java | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/HttpResponseReceiverInstrumenter.java b/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/HttpResponseReceiverInstrumenter.java index 2c6f90826a23..86f7e3ec9c21 100644 --- a/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/HttpResponseReceiverInstrumenter.java +++ b/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/HttpResponseReceiverInstrumenter.java @@ -54,7 +54,7 @@ public static HttpClient.ResponseReceiver instrument(HttpClient.ResponseRecei return null; } - static final class CaptureParentContext + private static final class CaptureParentContext implements Function, Mono> { private final InstrumentationContexts instrumentationContexts; @@ -79,7 +79,7 @@ public Mono apply(Mono mono) { } } - static final class StartOperation implements BiConsumer { + private static final class StartOperation implements BiConsumer { private final InstrumentationContexts instrumentationContexts; @@ -100,7 +100,7 @@ public void accept(HttpClientRequest request, Connection connection) { } } - static final class EndOperationWithRequestError + private static final class EndOperationWithRequestError implements BiConsumer { private final InstrumentationContexts instrumentationContexts; @@ -127,7 +127,7 @@ public void accept(HttpClientRequest request, Throwable error) { } } - static final class EndOperationWithResponseError + private static final class EndOperationWithResponseError implements BiConsumer { private final InstrumentationContexts instrumentationContexts; @@ -142,7 +142,8 @@ public void accept(HttpClientResponse response, Throwable error) { } } - static final class EndOperationWithSuccess implements BiConsumer { + private static final class EndOperationWithSuccess + implements BiConsumer { private final InstrumentationContexts instrumentationContexts; diff --git a/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/InstrumentationContexts.java b/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/InstrumentationContexts.java index e6af2f990268..9ed8cf398555 100644 --- a/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/InstrumentationContexts.java +++ b/instrumentation/reactor/reactor-netty/reactor-netty-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/reactornetty/v1_0/InstrumentationContexts.java @@ -19,7 +19,7 @@ final class InstrumentationContexts { - static final Logger logger = Logger.getLogger(InstrumentationContexts.class.getName()); + private static final Logger logger = Logger.getLogger(InstrumentationContexts.class.getName()); private volatile Context parentContext; // on retries, reactor-netty starts the next resend attempt before it ends the previous one (i.e.