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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableForTesting(boolean value) A mechanism to enable debugging for testing without having to recompile.static StringReturns the message we send for how to enable better metrics debugging.static booleanReturns true if metrics debugging is enabled.
-
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.
-