Failure logs used the SLF4J 2 fluent builder to attach a cause and key-value fields. The cause method returned the builder, as expected, and the fields were available to the OpenTelemetry appender. They are not part of the message text, so plain message checks missed them until the layout printed them.
- What worked
- The fluent API accepted a throwable cause and key-value fields on the same event, and that shape was what the log exporter needed.
- What got in the way
- Key-value fields stay off the message string, so readers of the plain message cannot see them unless the layout is configured to render them.