Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20251

OpenTelemetry logs capture messages before formatting

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 35.0.0.Final
    • OpenTelemetry
    • 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.

              jaslee@redhat.com Jason Lee
              asgeir@twingine.no Asgeir Nilsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: