fix(deps): update dependency io.grpc:grpc-bom to v1.69.0 (#6938)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Plumb <jplumb@splunk.com>
This commit is contained in:
parent
e3cfedee7d
commit
62f060ed9a
|
|
@ -14,7 +14,7 @@ val DEPENDENCY_BOMS = listOf(
|
|||
"com.linecorp.armeria:armeria-bom:1.31.2",
|
||||
"com.squareup.okhttp3:okhttp-bom:4.12.0",
|
||||
"com.squareup.okio:okio-bom:3.9.1", // applies to transitive dependencies of okhttp
|
||||
"io.grpc:grpc-bom:1.68.2",
|
||||
"io.grpc:grpc-bom:1.69.0",
|
||||
"io.netty:netty-bom:4.1.115.Final",
|
||||
"io.zipkin.brave:brave-bom:6.0.3",
|
||||
"io.zipkin.reporter2:zipkin-reporter-bom:3.4.3",
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ import io.opentelemetry.exporter.internal.grpc.GrpcSender;
|
|||
import io.opentelemetry.exporter.internal.grpc.MarshalerServiceStub;
|
||||
import io.opentelemetry.exporter.internal.marshal.Marshaler;
|
||||
import io.opentelemetry.sdk.common.CompletableResultCode;
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Supplier;
|
||||
import javax.annotation.Nullable;
|
||||
|
|
@ -55,7 +55,7 @@ public final class UpstreamGrpcSender<T extends Marshaler> implements GrpcSender
|
|||
public void send(T request, Consumer<GrpcResponse> onResponse, Consumer<Throwable> onError) {
|
||||
MarshalerServiceStub<T, ?, ?> stub = this.stub;
|
||||
if (timeoutNanos > 0) {
|
||||
stub = stub.withDeadlineAfter(timeoutNanos, TimeUnit.NANOSECONDS);
|
||||
stub = stub.withDeadlineAfter(Duration.ofNanos(timeoutNanos));
|
||||
}
|
||||
Map<String, List<String>> headers = headersSupplier.get();
|
||||
if (headers != null) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import io.grpc.Status;
|
|||
import io.opentelemetry.exporter.internal.grpc.ManagedChannelUtil;
|
||||
import io.opentelemetry.exporter.internal.grpc.MarshalerServiceStub;
|
||||
import io.opentelemetry.sdk.common.CompletableResultCode;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.time.Duration;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ final class UpstreamGrpcService implements GrpcService {
|
|||
SamplingStrategyParametersMarshaler, SamplingStrategyResponseUnMarshaler, ?>
|
||||
stub = this.stub;
|
||||
if (timeoutNanos > 0) {
|
||||
stub = stub.withDeadlineAfter(timeoutNanos, TimeUnit.NANOSECONDS);
|
||||
stub = stub.withDeadlineAfter(Duration.ofNanos(timeoutNanos));
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue