SnoopStore
In-memory ring buffer of captured entries, exposed as a StateFlow the UI observes. All mutations go through mutate, which is safe under concurrent writers (MutableStateFlow.update retries on conflict), so the Ktor plugin and the analytics logger can record from any thread.
Two eviction limits apply, both drop-oldest: capacity (entry count) and maxTotalBytes (approximate memory), so a burst of huge bodies can't balloon the host's heap.
Functions
Link copied to clipboard
Link copied to clipboard
fun reconfigure(capacity: Int = this.capacity, maxTotalBytes: Long = this.maxTotalBytes, clear: Boolean = true)
Link copied to clipboard
Link copied to clipboard