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
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