diff --git a/Vostok.Hosting/Components/Log/LogLevelMetrics.cs b/Vostok.Hosting/Components/Log/LogLevelMetrics.cs index bb9f8745..2d1a944a 100644 --- a/Vostok.Hosting/Components/Log/LogLevelMetrics.cs +++ b/Vostok.Hosting/Components/Log/LogLevelMetrics.cs @@ -21,7 +21,7 @@ public static IDisposable Measure(LogEventLevelCounter counter, IVostokApplicati return context.Instance .WithTag(WellKnownTagKeys.Component, "VostokLog") .WithTag(WellKnownTagKeys.Name, "EventsByLevel") - .CreateMultiFuncGauge(new LogLevelMetrics(counter).ProvideMetrics) + .CreateMultiFuncGauge(new LogLevelMetrics(counter).ProvideMetrics, new FuncGaugeConfig {ScrapeOnDispose = true}) as IDisposable; }