Class DebugConfig
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.debug.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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ENABLE_METRICS_DEBUG_PROPERTY
private static boolean
enabled
-
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.
-
-
-
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
-
-
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.
-
-