Skip to content

Commit a09251e

Browse files
committed
Upgrade to gRPC v4
1 parent f071db3 commit a09251e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingServerInterceptor.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import java.net.SocketAddress;
77
import java.util.Collections;
88

9-
import javax.annotation.Nullable;
10-
119
import jakarta.inject.Singleton;
1210

1311
import io.grpc.ForwardingServerCall.SimpleForwardingServerCall;
@@ -88,14 +86,14 @@ public Integer getServerPort(GrpcRequest grpcRequest) {
8886

8987
@Override
9088
public InetSocketAddress getNetworkLocalInetSocketAddress(
91-
GrpcRequest grpcRequest, @Nullable Status status) {
89+
GrpcRequest grpcRequest, Status status) {
9290
// TODO: later version introduces TRANSPORT_ATTR_LOCAL_ADDR, might be a good idea to use it
9391
return null;
9492
}
9593

9694
@Override
9795
public InetSocketAddress getNetworkPeerInetSocketAddress(
98-
GrpcRequest request, @Nullable Status status) {
96+
GrpcRequest request, Status status) {
9997
SocketAddress address = request.getPeerSocketAddress();
10098
if (address instanceof InetSocketAddress) {
10199
return (InetSocketAddress) address;

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@
8181
<hibernate-search.version>7.2.3.Final</hibernate-search.version>
8282

8383
<!-- Make sure to check compatibility between these 2 gRPC components before upgrade -->
84-
<grpc.version>1.69.1</grpc.version> <!-- when updating, verify if com.google.auth should not be updated too -->
84+
<grpc.version>1.71.0</grpc.version> <!-- when updating, verify if com.google.auth should not be updated too -->
8585
<grpc-jprotoc.version>1.2.2</grpc-jprotoc.version>
86-
<protoc.version>3.25.5</protoc.version>
86+
<protoc.version>4.30.2</protoc.version>
8787
<protobuf-java.version>${protoc.version}</protobuf-java.version>
88-
<protobuf-kotlin.version>4.29.3</protobuf-kotlin.version>
88+
<protobuf-kotlin.version>${protobuf-java.version}</protobuf-kotlin.version>
8989
<proto-google-common-protos.version>2.54.1</proto-google-common-protos.version>
9090

9191
<!-- Used in the build parent and test BOM (for the junit 5 plugin) and in the BOM (for the API) -->

0 commit comments

Comments
 (0)