cadence-java-client icon indicating copy to clipboard operation
cadence-java-client copied to clipboard

ContextPropagators lost in TestWorkflowEnvironment

Open WellingR opened this issue 4 years ago • 0 comments

While enabling a ContextPropagators to include MDC in logging I found that it did not work during my tests.

After some investigation I found out that the TestWorkflowEnvironmentInternal calls WorkflowClientOptions.newBuilder(options). Which creates a copy of the options but without the context propagators.

On first glance fixing this seems as simple as just setting the context propagators in WorkflowClientOptions.

WellingR avatar Jul 06 '21 06:07 WellingR