Class OpenTelemetryUtils

java.lang.Object
io.jenkins.plugins.opentelemetry.api.util.OpenTelemetryUtils

public class OpenTelemetryUtils extends Object
Utility methods for working with OpenTelemetry.
  • Method Details

    • isOtelInstrumentationEnabled

      public static boolean isOtelInstrumentationEnabled(String instrumentationName)

      Check if the OpenTelemetry instrumentation for the given instrumentation name is enabled.

      Search for system properties and environment variables.

      See Docs - Zero-code Instrumentation - Java - Agent - Configuration

      Parameters:
      instrumentationName - the name of the instrumentation like "jdbc", "web"...
    • testLogRecordExporter

      public static String testLogRecordExporter()