public void GetRootMetricsLogger() { Assert.Null(Record.Exception(() => { MetricsManager.GetRootMetricsLogger().IncrementCounter("NumOfExceptions", 1); MetricsManager.GetRootMetricsLogger().Flush(); MetricsManager.FlushAll(); })); }
public void FlushIndividualMetricsLogger() { Assert.Null(Record.Exception(() => { CollectTestMetrics("api=Upload").Flush(); CollectTestMetrics("api=Download").Flush(); MetricsManager.FlushAll(); })); }