Skip to content

Commit 1b7ee32

Browse files
authored
Module cleanup (run 25343957537) (open-telemetry#18574)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
1 parent c96a37f commit 1b7ee32

11 files changed

Lines changed: 11 additions & 17 deletions

File tree

instrumentation/netty/netty-common-4.0/library/src/main/java/io/opentelemetry/instrumentation/netty/common/v4_0/internal/client/NettyConnectHttpAttributesGetter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public List<String> getHttpResponseHeader(
5050
return emptyList();
5151
}
5252

53+
@Nullable
5354
@Override
5455
public String getNetworkTransport(NettyConnectionRequest request, @Nullable Channel channel) {
5556
return ChannelUtil.getNetworkTransport(channel);

instrumentation/okhttp/okhttp-3.0/library/src/main/java/io/opentelemetry/instrumentation/okhttp/v3_0/TracingCallFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private static boolean supportsTags() {
5050
Request.class.getMethod("tag", Class.class);
5151
Request.Builder.class.getMethod("tag", Class.class, Object.class);
5252
return true;
53-
} catch (NoSuchMethodException e) {
53+
} catch (NoSuchMethodException ignored) {
5454
return false;
5555
}
5656
}

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/DelegatingInvocationHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
import java.lang.reflect.Method;
1111
import java.lang.reflect.Proxy;
1212

13-
abstract class DelegatingInvocationHandler<T, S extends DelegatingInvocationHandler<T, S>>
14-
implements InvocationHandler {
13+
abstract class DelegatingInvocationHandler<T> implements InvocationHandler {
1514

1615
private static final ClassLoader classLoader = DelegatingInvocationHandler.class.getClassLoader();
1716

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedChatCompletionService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.lang.reflect.Method;
1919

2020
final class InstrumentedChatCompletionService
21-
extends DelegatingInvocationHandler<ChatCompletionService, InstrumentedChatCompletionService> {
21+
extends DelegatingInvocationHandler<ChatCompletionService> {
2222

2323
private final Instrumenter<ChatCompletionCreateParams, ChatCompletion> instrumenter;
2424
private final Logger eventLogger;

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedChatCompletionServiceAsync.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
import java.util.concurrent.CompletableFuture;
2020

2121
final class InstrumentedChatCompletionServiceAsync
22-
extends DelegatingInvocationHandler<
23-
ChatCompletionServiceAsync, InstrumentedChatCompletionServiceAsync> {
22+
extends DelegatingInvocationHandler<ChatCompletionServiceAsync> {
2423

2524
private final Instrumenter<ChatCompletionCreateParams, ChatCompletion> instrumenter;
2625
private final Logger eventLogger;

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedChatService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1313
import java.lang.reflect.Method;
1414

15-
final class InstrumentedChatService
16-
extends DelegatingInvocationHandler<ChatService, InstrumentedChatService> {
15+
final class InstrumentedChatService extends DelegatingInvocationHandler<ChatService> {
1716

1817
private final Instrumenter<ChatCompletionCreateParams, ChatCompletion> instrumenter;
1918
private final Logger eventLogger;

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedChatServiceAsync.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1313
import java.lang.reflect.Method;
1414

15-
final class InstrumentedChatServiceAsync
16-
extends DelegatingInvocationHandler<ChatServiceAsync, InstrumentedChatServiceAsync> {
15+
final class InstrumentedChatServiceAsync extends DelegatingInvocationHandler<ChatServiceAsync> {
1716

1817
private final Instrumenter<ChatCompletionCreateParams, ChatCompletion> instrumenter;
1918
private final Logger eventLogger;

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedEmbeddingService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1515
import java.lang.reflect.Method;
1616

17-
final class InstrumentedEmbeddingService
18-
extends DelegatingInvocationHandler<EmbeddingService, InstrumentedEmbeddingService> {
17+
final class InstrumentedEmbeddingService extends DelegatingInvocationHandler<EmbeddingService> {
1918

2019
private final Instrumenter<EmbeddingCreateParams, CreateEmbeddingResponse> instrumenter;
2120

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedEmbeddingServiceAsync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.concurrent.CompletableFuture;
1717

1818
final class InstrumentedEmbeddingServiceAsync
19-
extends DelegatingInvocationHandler<EmbeddingServiceAsync, InstrumentedEmbeddingServiceAsync> {
19+
extends DelegatingInvocationHandler<EmbeddingServiceAsync> {
2020

2121
private final Instrumenter<EmbeddingCreateParams, CreateEmbeddingResponse> instrumenter;
2222

instrumentation/openai/openai-java-1.1/library/src/main/java/io/opentelemetry/instrumentation/openai/v1_1/InstrumentedOpenAiClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1515
import java.lang.reflect.Method;
1616

17-
final class InstrumentedOpenAiClient
18-
extends DelegatingInvocationHandler<OpenAIClient, InstrumentedOpenAiClient> {
17+
final class InstrumentedOpenAiClient extends DelegatingInvocationHandler<OpenAIClient> {
1918

2019
private final Instrumenter<ChatCompletionCreateParams, ChatCompletion> chatInstrumenter;
2120
private final Instrumenter<EmbeddingCreateParams, CreateEmbeddingResponse> embeddingInstrumenter;

0 commit comments

Comments
 (0)