Skip to content

Commit

Permalink
fix(deps): update dependency io.grpc:grpc-bom to v1.69.0 (#6938)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jason Plumb <[email protected]>
  • Loading branch information
renovate[bot] and breedx-splk authored Dec 12, 2024
1 parent e3cfede commit 62f060e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
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;
Expand Down Expand Up @@ -55,7 +55,7 @@ public UpstreamGrpcSender(
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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;

Expand Down Expand Up @@ -48,7 +48,7 @@ public SamplingStrategyResponseUnMarshaler execute(
SamplingStrategyParametersMarshaler, SamplingStrategyResponseUnMarshaler, ?>
stub = this.stub;
if (timeoutNanos > 0) {
stub = stub.withDeadlineAfter(timeoutNanos, TimeUnit.NANOSECONDS);
stub = stub.withDeadlineAfter(Duration.ofNanos(timeoutNanos));
}

try {
Expand Down

0 comments on commit 62f060e

Please sign in to comment.