Package-level declarations

Types

Link copied to clipboard
sealed interface CapturedLogicEvent
Link copied to clipboard
class SessionCapture(maxActions: Int? = null, maxLogicEvents: Int? = null, maxLogs: Int? = null, redactor: StateRedactor? = null, redactSensitiveKeys: Boolean = true, sensitiveKeys: Set<String> = DEFAULT_SENSITIVE_KEYS)

Captures session data for crash reports, manual export, and DevTools streaming.

Link copied to clipboard
@Serializable
data class SessionHistory(val startTime: Long, val initialStateJson: String = "{}", val actions: List<CapturedAction>, val logicStarted: List<LogicMethodStart>, val logicCompleted: List<LogicMethodCompleted>, val logicFailed: List<LogicMethodFailed>, val stateReads: List<StateRead> = emptyList(), val markers: List<SessionMarker> = emptyList(), val network: List<NetworkRequestCapture> = emptyList(), val logs: List<CapturedLog> = emptyList(), val extensions: Map<String, JsonElement> = emptyMap())

Represents the current session history.

Link copied to clipboard
class StateTree(val modules: JsonObject, val failed: Map<String, String>)

A state tree encoded one module at a time, with the modules that could not be encoded and why.

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.