From 7776a3f804091da2f5c75d02e90861eb050f0d4f Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Wed, 26 Mar 2025 08:56:17 -0400 Subject: [PATCH 1/2] Nexus sample edits --- .../java/io/temporal/samples/nexuscancellation/README.MD | 5 +++-- .../io/temporal/samples/nexuscontextpropagation/README.MD | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD b/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD index cf39c85c4..1e8155868 100644 --- a/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD +++ b/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD @@ -2,9 +2,10 @@ This sample shows how to cancel a Nexus operation from a caller workflow. -From more details on Nexus and how to setup to run this samples please see the [Nexus Sample](../nexus/README.MD). +Follow the instructions in the main [Nexus Sample](../nexus/README.MD) to set up your environment to run this sample +(run a Temporal server, create caller and target namespaces, and create a Nexus endpoint). -In separate terminal windows: +Next, in separate terminal windows: ### Nexus handler worker diff --git a/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD b/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD index 1f1800a3a..047cae3ab 100644 --- a/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD +++ b/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD @@ -1,11 +1,12 @@ # Nexus Context Propagation -This sample shows how to propagate MDC context values from Workflows to Nexus operations. +This sample shows how to propagate MDC (Mapped Diagnostic Context) context values from Workflows to Nexus operations. Nexus does not support `ContextPropagator` since the header format is not compatible. Users should look at `NexusMDCContextInterceptor` for propagating MDC context values. -From more details on Nexus and how to setup to run this samples please see the [Nexus Sample](../nexus/README.MD). +Follow the instructions in the main [Nexus Sample](../nexus/README.MD) to set up your environment to run this sample +(run a Temporal server, create caller and target namespaces, and create a Nexus endpoint). -In separate terminal windows: +Next, in separate terminal windows: ### Nexus handler worker From 124ac1b3430d802f3017b6e9b6d041b1a28b935b Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Wed, 26 Mar 2025 17:10:36 -0400 Subject: [PATCH 2/2] Improve wording --- .../main/java/io/temporal/samples/nexuscancellation/README.MD | 3 +-- .../java/io/temporal/samples/nexuscontextpropagation/README.MD | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD b/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD index 1e8155868..f4da82852 100644 --- a/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD +++ b/core/src/main/java/io/temporal/samples/nexuscancellation/README.MD @@ -2,8 +2,7 @@ This sample shows how to cancel a Nexus operation from a caller workflow. -Follow the instructions in the main [Nexus Sample](../nexus/README.MD) to set up your environment to run this sample -(run a Temporal server, create caller and target namespaces, and create a Nexus endpoint). +To run this sample, set up your environment following the instructions in the main [Nexus Sample](../nexus/README.md). Next, in separate terminal windows: diff --git a/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD b/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD index 047cae3ab..79453cc4d 100644 --- a/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD +++ b/core/src/main/java/io/temporal/samples/nexuscontextpropagation/README.MD @@ -3,8 +3,7 @@ This sample shows how to propagate MDC (Mapped Diagnostic Context) context values from Workflows to Nexus operations. Nexus does not support `ContextPropagator` since the header format is not compatible. Users should look at `NexusMDCContextInterceptor` for propagating MDC context values. -Follow the instructions in the main [Nexus Sample](../nexus/README.MD) to set up your environment to run this sample -(run a Temporal server, create caller and target namespaces, and create a Nexus endpoint). +To run this sample, set up your environment following the instructions in the main [Nexus Sample](../nexus/README.md). Next, in separate terminal windows: