sample

fun sample(operation: () -> Unit)(source)

Records one successful operation, propagating failure without counting a failed sample. A caller operation may fail with any Throwable; poison the partial interval and rethrow.