setMetricsObserver

open override fun setMetricsObserver(metricsObserver: MetricsObserver)

Adds a MetricsObserver that will be triggered when a metric event is handled.