Skip to content

ContextPropagators lost in TestWorkflowEnvironment #621

Open
@WellingR

Description

@WellingR

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions