Class DebugConfig


  • public final class DebugConfig
    extends java.lang.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.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DebugConfig()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void enableForTesting​(boolean value)
      A mechanism to enable debugging for testing without having to recompile.
      static java.lang.String getHowToEnableMessage()
      Returns the message we send for how to enable better metrics debugging.
      static boolean isMetricsDebugEnabled()
      Returns true if metrics debugging is enabled.
      • Methods inherited from class java.lang.Object

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

      • ENABLE_METRICS_DEBUG_PROPERTY

        private static final java.lang.String ENABLE_METRICS_DEBUG_PROPERTY
        See Also:
        Constant Field Values
      • enabled

        private static boolean enabled
    • Constructor Detail

      • DebugConfig

        private DebugConfig()
    • Method Detail

      • isMetricsDebugEnabled

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

        This will grab stack traces on instrument/view registration.

      • getHowToEnableMessage

        public static java.lang.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.