Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package io.temporal.activity;

import com.google.common.base.Objects;
import io.temporal.client.WorkflowClientOptions;
import io.temporal.common.MethodRetry;
import io.temporal.common.RetryOptions;
import io.temporal.common.context.ContextPropagator;
Expand Down Expand Up @@ -154,7 +155,8 @@ public Builder setRetryOptions(RetryOptions retryOptions) {

/**
* Note: <br>
* This method has an extremely limited usage.
* This method has extremely limited usage. The majority of users should just set {@link
* WorkflowClientOptions#getContextPropagators()}
*
* <p>Both "client" (workflow worker) and "server" (activity worker) sides of context
* propagation from a workflow to an activity exist in a worker process (potentially the same
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,13 @@ public Builder setSearchAttributes(Map<String, Object> searchAttributes) {
}

/**
* @param contextPropagators specifies the list of context propagators to use during this
* workflow. This list overrides the list specified on {@link
* WorkflowClientOptions#getContextPropagators()}, {@code null} means no overriding
* This list of context propagators overrides the list specified on {@link
* WorkflowClientOptions#getContextPropagators()}. <br>
* This method is uncommon, the majority of users should just set {@link
* WorkflowClientOptions#getContextPropagators()}
*
* @param contextPropagators specifies the list of overriding context propagators, {@code null}
* means no overriding.
*/
public Builder setContextPropagators(@Nullable List<ContextPropagator> contextPropagators) {
this.contextPropagators = contextPropagators;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
import java.util.Map;

/**
* Context Propagators are used to propagate information from workflow to activity, workflow to
* child workflow, and workflow to child thread (using {@link io.temporal.workflow.Async}).
* Context Propagators are used to propagate information from the workflow client to workflow
* execution, workflow to activity, workflow to child workflow, and workflow to child thread created
* using {@link io.temporal.workflow.Async}. <br>
* The propagation works from top to bottom, lower level contexts are not propagated back to the
* top.
*
* <p>A sample <code>ContextPropagator</code> that copies all {@link org.slf4j.MDC} entries starting
* with a given prefix along the code path looks like this:
Expand Down