cadence-java-client
cadence-java-client copied to clipboard
ContextPropagators lost in TestWorkflowEnvironment
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.