diff --git a/build.gradle b/build.gradle index 51b1a80e5..f1731c4fd 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ subprojects { ext { otelVersion = '1.30.1' otelVersionAlpha = "${otelVersion}-alpha" - javaSDKVersion = '1.28.0' + javaSDKVersion = '1.28.1' camelVersion = '3.22.1' jarVersion = '1.0.0' } diff --git a/core/src/main/java/io/temporal/samples/nexus/options/ClientOptions.java b/core/src/main/java/io/temporal/samples/nexus/options/ClientOptions.java index 7ba699309..36a42ee2c 100644 --- a/core/src/main/java/io/temporal/samples/nexus/options/ClientOptions.java +++ b/core/src/main/java/io/temporal/samples/nexus/options/ClientOptions.java @@ -19,11 +19,9 @@ package io.temporal.samples.nexus.options; -import io.grpc.Metadata; import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts; import io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder; import io.grpc.netty.shaded.io.netty.handler.ssl.util.InsecureTrustManagerFactory; -import io.grpc.stub.MetadataUtils; import io.temporal.client.WorkflowClient; import io.temporal.client.WorkflowClientOptions; import io.temporal.serviceclient.WorkflowServiceStubs; @@ -137,14 +135,6 @@ public static WorkflowClient getWorkflowClient(String[] args) { if (!apiKey.isEmpty()) { serviceStubOptionsBuilder.setEnableHttps(true); serviceStubOptionsBuilder.addApiKey(() -> apiKey); - Metadata.Key TEMPORAL_NAMESPACE_HEADER_KEY = - Metadata.Key.of("temporal-namespace", Metadata.ASCII_STRING_MARSHALLER); - Metadata metadata = new Metadata(); - metadata.put(TEMPORAL_NAMESPACE_HEADER_KEY, namespace); - serviceStubOptionsBuilder.setChannelInitializer( - (channel) -> { - channel.intercept(MetadataUtils.newAttachHeadersInterceptor(metadata)); - }); } WorkflowServiceStubs service =