getEvents

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.

Each filter is optional; if none is provided the entire buffer is returned. Time bounds are inclusive.