Package 

Object OtelLoggingHelper


  • 
    public class OtelLoggingHelper
    
                        

    Helper class for logging to Otel from the Logging class. This abstracts away OpenTelemetry-specific types so the core module doesn't need direct OpenTelemetry dependencies.

    • Method Summary

      Modifier and Type Method Description
      final Unit logToOtel(IOtelOpenTelemetryRemote telemetry, String level, String message, String exceptionType, String exceptionMessage, String exceptionStacktrace) Logs a message to Otel remote telemetry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • logToOtel

         final Unit logToOtel(IOtelOpenTelemetryRemote telemetry, String level, String message, String exceptionType, String exceptionMessage, String exceptionStacktrace)

        Logs a message to Otel remote telemetry. This method handles all OpenTelemetry-specific types internally.

        Parameters:
        telemetry - The Otel remote telemetry instance
        level - The log level as a string (VERBOSE, DEBUG, INFO, WARN, ERROR, FATAL)
        message - The log message
        exceptionType - Optional exception type
        exceptionMessage - Optional exception message
        exceptionStacktrace - Optional exception stacktrace