EventStore
Append-only buffer of TracerEvents plus a hot SharedFlow for live consumers.
Reads return immutable snapshots. The append path uses an internal Mutex so the buffer is safe to share across coroutines.
Mirrors the Python reference EventStore (tracer/event_store.py).
Properties
Functions
Link copied to clipboard
suspend fun getEvents(type: KClass<out TracerEvent>? = null, startTime: Instant? = null, endTime: Instant? = null, predicate: (TracerEvent) -> Boolean? = null): List<TracerEvent>
Returns a snapshot of every event matching the supplied filters.
Link copied to clipboard
Link copied to clipboard
Store event in the buffer and emit it to live subscribers.