use mdc AttributeKey from captureMdcAttributes

This commit is contained in:
Phil Clay 2025-09-18 10:47:03 -06:00
parent d0386fbf61
commit 3b0231bc4d
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public final class LogEventMapper {
for (Map.Entry<String, AttributeKey<String>> entry : captureMdcAttributes.entrySet()) {
Object value = context.get(entry.getKey());
setAttributeOrEventName(builder, getMdcAttributeKey(entry.getKey()), value);
setAttributeOrEventName(builder, entry.getValue(), value);
}
}