Skip to content

Commit 600dcc4

Browse files
authored
Added initialization of contextPropagators from passed options (#837)
* Added initialization of contextPropagators from passed WorkflowClientOptions * Changed order
1 parent b58f006 commit 600dcc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/uber/cadence/client/WorkflowClientOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static final class Builder {
5959
private DataConverter dataConverter = JsonDataConverter.getInstance();
6060
private WorkflowClientInterceptor[] interceptors = EMPTY_INTERCEPTOR_ARRAY;
6161
private Scope metricsScope = NoopScope.getInstance();
62-
private String identity = ManagementFactory.getRuntimeMXBean().getName();;
62+
private String identity = ManagementFactory.getRuntimeMXBean().getName();
6363
private List<ContextPropagator> contextPropagators = EMPTY_CONTEXT_PROPAGATORS;
6464
private QueryRejectCondition queryRejectCondition;
6565

@@ -71,6 +71,7 @@ private Builder(WorkflowClientOptions options) {
7171
interceptors = options.getInterceptors();
7272
metricsScope = options.getMetricsScope();
7373
identity = options.getIdentity();
74+
contextPropagators = options.getContextPropagators();
7475
queryRejectCondition = options.getQueryRejectCondition();
7576
}
7677

0 commit comments

Comments
 (0)