when the counter has this logic: ```open class Cou...
# spek
m
when the counter has this logic:
Copy code
open class Counter(
    name: String,
    parent: RevlMetrics,
    val tagVals: Collection<TagAndValue<out TagValue>>
) : MetricBase(name, parent) {
    /**
     * Add [amount] to the counter.
     */
    fun increment(amount: Int = 1) {
        if (amount < 1) {
            throw IllegalArgumentException("Increment can only be positive")
        }
        parent.sendCounter(CounterChange(name, tagVals, amount))
    }
}