New option setter:
func RecordMetrics(callback func(*WatcherMetrics))
Allows user to set a callback function for collecting and reporting various metrics. The WatcherMetrics struct passed to the callback will contain: latency, channel, protocol and local id. If applicable, error and message size is also returned
New option setter: func RecordMetrics(callback func(*WatcherMetrics))
Allows user to set a callback function for collecting and reporting various metrics. The WatcherMetrics struct passed to the callback will contain: latency, channel, protocol and local id. If applicable, error and message size is also returned