-
Enhancement
-
Resolution: Unresolved
-
Major
-
None
-
35.0.0.Final
-
None
-
---
-
---
Updated my OpenTelemetry testing grounds to WildFly 35 and enabled OpenTelemetry logs export by defining the system property otel.sdk.disabled=false
Logs are already captured using a socket-handler so, as expected, log events appeared duplicated in the OpenTelemetry collector.
Not expected however were the differences in the captured log events. Logs are created using org.jboss.logging.Logger using infof() and similar methods.
Event captured by socket-handler
- Log message: Handling regular greeting request for England from 10.244.0.1
- MDC: present
- NDC: present
- loggerName: present
Event captured by OpenTelemetry
- Log message: Handling %s greeting request for %s from %s
- MDC: absent
- NDC: absent
- loggerName: absent
The OpenTelemetry agent clearly captures the log event before the JBoss logger formats the message using the supplied parameters, and the context data is also lacking.