fix(deps): update errorproneversion to v2.33.0 (minor) (#12371)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
This commit is contained in:
parent
05fc6374f1
commit
467a2729bb
|
@ -40,7 +40,7 @@ val DEPENDENCY_BOMS = listOf(
|
|||
|
||||
val autoServiceVersion = "1.1.1"
|
||||
val autoValueVersion = "1.11.0"
|
||||
val errorProneVersion = "2.32.0"
|
||||
val errorProneVersion = "2.33.0"
|
||||
val byteBuddyVersion = "1.15.3"
|
||||
val asmVersion = "9.7"
|
||||
val jmhVersion = "1.37"
|
||||
|
|
|
@ -24,7 +24,7 @@ public class CouchbaseInstrumentationModule extends InstrumentationModule
|
|||
|
||||
@Override
|
||||
public boolean isHelperClass(String className) {
|
||||
return className.equals("rx.__OpenTelemetryTracingUtil");
|
||||
return className.equals("rx.OpenTelemetryTracingUtil");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -39,6 +39,6 @@ public class CouchbaseInstrumentationModule extends InstrumentationModule
|
|||
|
||||
@Override
|
||||
public List<String> injectedClassNames() {
|
||||
return singletonList("rx.__OpenTelemetryTracingUtil");
|
||||
return singletonList("rx.OpenTelemetryTracingUtil");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import graphql.execution.instrumentation.Instrumentation;
|
|||
import io.opentelemetry.api.OpenTelemetry;
|
||||
import io.opentelemetry.instrumentation.graphql.internal.OpenTelemetryInstrumentationHelper;
|
||||
|
||||
@SuppressWarnings("AbbreviationAsWordInName")
|
||||
@SuppressWarnings({"AbbreviationAsWordInName", "MemberName"})
|
||||
public final class GraphQLTelemetry {
|
||||
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.graphql-java-12.0";
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import com.google.errorprone.annotations.CanIgnoreReturnValue;
|
|||
import io.opentelemetry.api.OpenTelemetry;
|
||||
|
||||
/** A builder of {@link GraphQLTelemetry}. */
|
||||
@SuppressWarnings("AbbreviationAsWordInName")
|
||||
@SuppressWarnings({"AbbreviationAsWordInName", "MemberName"})
|
||||
public final class GraphQLTelemetryBuilder {
|
||||
|
||||
private final OpenTelemetry openTelemetry;
|
||||
|
|
|
@ -11,7 +11,7 @@ import io.opentelemetry.api.OpenTelemetry;
|
|||
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
|
||||
import io.opentelemetry.instrumentation.graphql.internal.OpenTelemetryInstrumentationHelper;
|
||||
|
||||
@SuppressWarnings("AbbreviationAsWordInName")
|
||||
@SuppressWarnings({"AbbreviationAsWordInName", "MemberName"})
|
||||
public final class GraphQLTelemetry {
|
||||
|
||||
/** Returns a new {@link GraphQLTelemetry} configured with the given {@link OpenTelemetry}. */
|
||||
|
|
|
@ -9,7 +9,7 @@ import com.google.errorprone.annotations.CanIgnoreReturnValue;
|
|||
import io.opentelemetry.api.OpenTelemetry;
|
||||
|
||||
/** A builder of {@link GraphQLTelemetry}. */
|
||||
@SuppressWarnings("AbbreviationAsWordInName")
|
||||
@SuppressWarnings({"AbbreviationAsWordInName", "MemberName"})
|
||||
public final class GraphQLTelemetryBuilder {
|
||||
|
||||
private final OpenTelemetry openTelemetry;
|
||||
|
|
|
@ -23,7 +23,7 @@ public class HystrixInstrumentationModule extends InstrumentationModule
|
|||
|
||||
@Override
|
||||
public boolean isHelperClass(String className) {
|
||||
return className.equals("rx.__OpenTelemetryTracingUtil");
|
||||
return className.equals("rx.OpenTelemetryTracingUtil");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -33,6 +33,6 @@ public class HystrixInstrumentationModule extends InstrumentationModule
|
|||
|
||||
@Override
|
||||
public List<String> injectedClassNames() {
|
||||
return singletonList("rx.__OpenTelemetryTracingUtil");
|
||||
return singletonList("rx.OpenTelemetryTracingUtil");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@ public class JbossLogmanagerMdcTest extends AgentInstrumentationSpecification {
|
|||
try {
|
||||
getMdcCopy = logRecords.get(0).getClass().getMethod("getMdcCopy");
|
||||
} catch (NoSuchMethodException ignored) {
|
||||
// ignored
|
||||
}
|
||||
|
||||
assertThat(logRecords.get(0).getMessage()).isEqualTo("log message 1");
|
||||
|
|
|
@ -82,6 +82,7 @@ class RabbitMqTest extends AbstractRabbitMqTest {
|
|||
conn.close();
|
||||
}
|
||||
} catch (ShutdownSignalException ignored) {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ public abstract class AbstractRedissonAsyncClientTest {
|
|||
}
|
||||
|
||||
@BeforeEach
|
||||
void setup() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
|
||||
void setup() throws InvocationTargetException, IllegalAccessException {
|
||||
String newAddress = address;
|
||||
if (useRedisProtocol()) {
|
||||
// Newer versions of redisson require scheme, older versions forbid it
|
||||
|
@ -95,6 +95,7 @@ public abstract class AbstractRedissonAsyncClientTest {
|
|||
.getMethod("setPingConnectionInterval", int.class)
|
||||
.invoke(singleServerConfig, 0);
|
||||
} catch (NoSuchMethodException ignored) {
|
||||
// ignored
|
||||
}
|
||||
redisson = Redisson.create(config);
|
||||
testing.clearData();
|
||||
|
|
|
@ -99,6 +99,7 @@ public abstract class AbstractRedissonClientTest {
|
|||
.getMethod("setPingConnectionInterval", int.class)
|
||||
.invoke(singleServerConfig, 0);
|
||||
} catch (NoSuchMethodException ignored) {
|
||||
// ignored
|
||||
}
|
||||
redisson = Redisson.create(config);
|
||||
testing.clearData();
|
||||
|
|
|
@ -9,8 +9,8 @@ import io.opentelemetry.context.Context;
|
|||
import io.opentelemetry.context.Scope;
|
||||
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
|
||||
import rx.Observable;
|
||||
import rx.OpenTelemetryTracingUtil;
|
||||
import rx.Subscriber;
|
||||
import rx.__OpenTelemetryTracingUtil;
|
||||
|
||||
public final class TracedOnSubscribe<T, REQUEST> implements Observable.OnSubscribe<T> {
|
||||
private final Observable.OnSubscribe<T> delegate;
|
||||
|
@ -20,7 +20,7 @@ public final class TracedOnSubscribe<T, REQUEST> implements Observable.OnSubscri
|
|||
|
||||
public TracedOnSubscribe(
|
||||
Observable<T> originalObservable, Instrumenter<REQUEST, ?> instrumenter, REQUEST request) {
|
||||
delegate = __OpenTelemetryTracingUtil.extractOnSubscribe(originalObservable);
|
||||
delegate = OpenTelemetryTracingUtil.extractOnSubscribe(originalObservable);
|
||||
this.instrumenter = instrumenter;
|
||||
this.request = request;
|
||||
|
||||
|
|
|
@ -8,11 +8,10 @@ package rx;
|
|||
/**
|
||||
* This class must be in the rx package in order to access the package accessible onSubscribe field.
|
||||
*/
|
||||
@SuppressWarnings("checkstyle:TypeName")
|
||||
public final class __OpenTelemetryTracingUtil {
|
||||
public final class OpenTelemetryTracingUtil {
|
||||
public static <T> Observable.OnSubscribe<T> extractOnSubscribe(Observable<T> observable) {
|
||||
return observable.onSubscribe;
|
||||
}
|
||||
|
||||
private __OpenTelemetryTracingUtil() {}
|
||||
private OpenTelemetryTracingUtil() {}
|
||||
}
|
|
@ -38,7 +38,7 @@ public class ShadowPackageRenamingTest {
|
|||
"org.objectweb.asm",
|
||||
"com.kenai",
|
||||
// Custom RxJava Utility
|
||||
"rx.__OpenTelemetryTracingUtil");
|
||||
"rx.OpenTelemetryTracingUtil");
|
||||
|
||||
@Test
|
||||
void agentDependenciesRenamed() throws Exception {
|
||||
|
|
|
@ -448,6 +448,7 @@ public abstract class AbstractHttpClientTest<REQUEST> implements HttpClientTypeA
|
|||
try {
|
||||
doRequest(method, uri);
|
||||
} catch (Throwable ignored) {
|
||||
// ignored
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue