As discussed in #45063, currently an MDC name that has already been used will throw an IllegalStateException and prevent that message from being logged at all. It would be better if we allowed the structured logging to continue without the offending element and issued a warning instead.
As discussed in #45063, currently an MDC name that has already been used will throw an IllegalStateException and prevent that message from being logged at all. It would be better if we allowed the structured logging to continue without the offending element and issued a warning instead.