setMetricsBufferObserver

Registers an observer that is invoked whenever new metrics are produced.