Class RecordingEventTriggerEvaluator

  • All Implemented Interfaces:

    
    public final class RecordingEventTriggerEvaluator
    
                        

    Evaluates whether an event matches trigger conditions.

    This class is responsible for determining if a tracked event should trigger session replay recording based on:

    • Event name match with configured triggers

    • Property filters (JSONLogic expressions)

    Note: Sampling is handled by startRecording() using the returned percentage.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double shouldStartRecording(String eventName, JSONObject properties) Evaluate if an event should start recording.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • shouldStartRecording

         final Double shouldStartRecording(String eventName, JSONObject properties)

        Evaluate if an event should start recording.

        Parameters:
        eventName - The name of the tracked event
        properties - The event properties as JSONObject
        Returns:

        Sampling percentage if conditions pass, null if should skip recording