counter

abstract fun counter(key: TraceKey, block: (Long) -> Long): Trace

Increment a counter as part of your trace.