Add a parameter that allows to not raise an exception when no metrics or events are collected