metricsReporter
A default Metrics collection plugin that periodically snapshots metrics and forwards them to sink, optionally flushing on stop.
This plugin supports backpressure. If the sink is slow, oldest snapshots will be dropped, reducing frequency of reporting until load normalizes.
Parameters
provider that exposes snapshots. A default provider is exposed via pro.respawn.flowmvi.metrics.dsl.metrics builder
scope used to launch flushing jobs AFTER store cancellation. This must NOT be the store's scope or scope that the store is launched in! See pro.respawn.flowmvi.metrics.dsl.metrics for details.
dispatcher for offloaded work
how often to collect snapshots; set to Duration.INFINITE or 0 to disable periodic emission
whether to emit one last snapshot during StorePlugin.onStop
optional plugin name
destination pro.respawn.flowmvi.metrics.api.Sink for snapshots.
A default Metrics collection plugin that periodically snapshots metrics and forwards them to sink, optionally flushing on stop.
This plugin supports backpressure. If the sink is slow, oldest snapshots will be dropped, reducing frequency of reporting until load normalizes.
Parameters
provider that exposes snapshots. A default provider is exposed via pro.respawn.flowmvi.metrics.dsl.metrics builder
how often to collect snapshots; set to Duration.INFINITE or 0 to disable periodic emission
whether to emit one last snapshot during StorePlugin.onStop
optional plugin name
destination pro.respawn.flowmvi.metrics.api.Sink for snapshots.