Skip to content

MDC: inconsistent handling of absence of namespace #3184

@metacosm

Description

@metacosm

When a resource info is added to MDC, it is done in several inconsistent ways with respect to how the namespace, or rather the absence thereof, is handled:

  • addResourceInfo does not add the namespace key if the namespace is null
  • addResourceIDInfo adds the key but sets the value to no namespace
  • addInformerEventInfo adds the key and sets the value to null (which causes an NPE in at least some MDC implementations)

This should be unified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions