Class DebugConfig

java.lang.Object
io.opentelemetry.sdk.metrics.internal.debug.DebugConfig

public final class DebugConfig extends Object
Determines if the SDK is in debugging mode (captures stack traces) or not.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Field Details

    • ENABLE_METRICS_DEBUG_PROPERTY

      private static final String ENABLE_METRICS_DEBUG_PROPERTY
      See Also:
    • enabled

      private static boolean enabled
  • Constructor Details

    • DebugConfig

      private DebugConfig()
  • Method Details

    • isMetricsDebugEnabled

      public static boolean isMetricsDebugEnabled()
      Returns true if metrics debugging is enabled.

      This will grab stack traces on instrument/view registration.

    • getHowToEnableMessage

      public static String getHowToEnableMessage()
      Returns the message we send for how to enable better metrics debugging.
    • enableForTesting

      public static void enableForTesting(boolean value)
      A mechanism to enable debugging for testing without having to recompile.