Class AiMonitoringUtils


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

      • AiMonitoringUtils

        public AiMonitoringUtils()
    • Method Detail

      • isAiMonitoringEnabled

        public static boolean isAiMonitoringEnabled()
        Check if ai_monitoring features are enabled. Indicates whether LLM instrumentation will be registered. If this is set to False, no metrics, events, or spans are to be sent.
        Returns:
        true if AI monitoring is enabled, else false
      • isAiMonitoringStreamingEnabled

        public static boolean isAiMonitoringStreamingEnabled()
        Check if ai_monitoring.streaming features are enabled.
        Returns:
        true if streaming is enabled, else false
      • isAiMonitoringRecordContentEnabled

        public static boolean isAiMonitoringRecordContentEnabled()
        Check if the input and output content should be added to LLM events.
        Returns:
        true if adding content is enabled, else false