SessionHistory
@Serializable
Represents the current session history.
Constructors
Link copied to clipboard
constructor(startTime: Long, initialStateJson: String = "{}", actions: List<CapturedAction>, logicStarted: List<LogicMethodStart>, logicCompleted: List<LogicMethodCompleted>, logicFailed: List<LogicMethodFailed>, stateReads: List<StateRead> = emptyList(), markers: List<SessionMarker> = emptyList(), network: List<NetworkRequestCapture> = emptyList(), logs: List<CapturedLog> = emptyList(), extensions: Map<String, JsonElement> = emptyMap())
Properties
Functions
Link copied to clipboard
fun SessionHistory.chunked(actionsPerChunk: Int = 250, eventsPerChunk: Int = 1000, networkPerChunk: Int = 50, networkBytesPerChunk: Int = WireBudget.MAX_PAYLOAD_BYTES): List<SessionHistory>
Splits a history into pieces small enough to send as individual messages.