metricsDecorator

fun <S : MVIState, I : MVIIntent, A : MVIAction> metricsDecorator(metrics: DefaultMetrics<S, I, A>, name: String? = DefaultDecoratorName): PluginDecorator<S, I, A>

Creates a decorator that populates the pro.respawn.flowmvi.metrics.api.MetricsSnapshots returned by the metrics. Without this decorator, Metrics won't do anything on its own (please see the definition) for more details

Install the resulting decorator into a store to start collecting metrics.