Skip to content

Clear MDC context after each Task #2314

@Quinn-With-Two-Ns

Description

@Quinn-With-Two-Ns

Is your feature request related to a problem? Please describe.
Users may set MDC context during activity or nexus task execution and not unset them after the activity code completes. Users may not clear them because they wanted them to be applied to SDK loggers or they just forgot. Since the SDK may use thread pools to execute tasks this risks leaking context between unrelated tasks.

Describe the solution you'd like
Automatically clear MDC context after each Task

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