Class RecordingEventTriggerEvaluator
-
- All Implemented Interfaces:
public final class RecordingEventTriggerEvaluatorEvaluates 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.
-
-
Constructor Summary
Constructors Constructor Description RecordingEventTriggerEvaluator(Map<String, RecordingEventTrigger> triggers)
-
Method Summary
Modifier and Type Method Description final DoubleshouldStartRecording(String eventName, JSONObject properties)Evaluate if an event should start recording. -
-
Constructor Detail
-
RecordingEventTriggerEvaluator
RecordingEventTriggerEvaluator(Map<String, RecordingEventTrigger> triggers)
-
-
Method Detail
-
shouldStartRecording
final Double shouldStartRecording(String eventName, JSONObject properties)
Evaluate if an event should start recording.
- Parameters:
eventName- The name of the tracked eventproperties- The event properties as JSONObject- Returns:
Sampling percentage if conditions pass, null if should skip recording
-
-
-
-