Class DebugConfig
java.lang.Object
io.opentelemetry.sdk.metrics.internal.debug.DebugConfig
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
enableForTesting
(boolean value) A mechanism to enable debugging for testing without having to recompile.static String
Returns the message we send for how to enable better metrics debugging.static boolean
Returns true if metrics debugging is enabled.
-
Field Details
-
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
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.
-