Class AppLoggingUtils


  • public class AppLoggingUtils
    extends java.lang.Object
    • Constructor Detail

      • AppLoggingUtils

        public AppLoggingUtils()
    • Method Detail

      • getLinkingMetadataBlob

        public static java.lang.String getLinkingMetadataBlob()
        Gets a String representing the agent linking metadata in blob format: NR-LINKING|entity.guid|hostname|trace.id|span.id|entity.name|
        Returns:
        agent linking metadata string blob
      • getLinkingMetadataBlobFromMap

        public static java.lang.String getLinkingMetadataBlobFromMap​(java.util.Map<java.lang.String,​java.lang.String> agentLinkingMetadata)
        Gets a String representing the agent linking metadata in blob format: NR-LINKING|entity.guid|hostname|trace.id|span.id|entity.name|
        Parameters:
        agentLinkingMetadata - map of linking metadata
        Returns:
        agent linking metadata string blob
      • urlEncode

        public static java.lang.String urlEncode​(java.lang.String value)
        URL encode a String value.
        Parameters:
        value - String to encode
        Returns:
        URL encoded String
      • isApplicationLoggingEnabled

        public static boolean isApplicationLoggingEnabled()
        Check if all application_logging features are enabled.
        Returns:
        true if enabled, else false
      • isApplicationLoggingMetricsEnabled

        public static boolean isApplicationLoggingMetricsEnabled()
        Check if the application_logging metrics feature is enabled.
        Returns:
        true if enabled, else false
      • isApplicationLoggingForwardingEnabled

        public static boolean isApplicationLoggingForwardingEnabled()
        Check if the application_logging forwarding feature is enabled.
        Returns:
        true if enabled, else false
      • isApplicationLoggingLocalDecoratingEnabled

        public static boolean isApplicationLoggingLocalDecoratingEnabled()
        Check if the application_logging local_decorating feature is enabled.
        Returns:
        true if enabled, else false
      • isAppLoggingContextDataEnabled

        public static boolean isAppLoggingContextDataEnabled()
        Check if the application_logging forwarding include_context_data feature is enabled.
        Returns:
        true if enabled, else false