public PeriodicMetricsReporter(TimeSpan interval, IEnumerable <IMeasurableComponent> measurableComponents, ICustomLogger logger, IMetricsTracker metricsTracker) : base(interval) { this._measurableComponents = measurableComponents; this._logger = logger; this._metricsTracker = metricsTracker; }
/// <inheritdoc/> public void ReportMetrics(IMetricsTracker metricsTracker) { metricsTracker.Register("OngoingTraces", this._ongoingTraces); metricsTracker.Register("PeakOngoingTraces", this._peakOngoingTraces); metricsTracker.Register("ThrottledTraces", this._throttledTraces); this._throttledTraces = 0; this._peakOngoingTraces = 0; }
public PeriodicUpdater(TimeSpan interval, TimeSpan updateTimeout, IUpdatable configProvider, IEnumerable <IConfigUpdatableComponent> updatableComponents, ICustomLogger logger, IMetricsTracker metricsTracker) : base(interval) { this._updateTimeoutMs = (int)updateTimeout.TotalMilliseconds; this._configProvider = configProvider; this._updatableComponents = updatableComponents; this._logger = logger; this._metricsTracker = metricsTracker; }
/// <inheritdoc/> public void ReportMetrics(IMetricsTracker metricsTracker) { metricsTracker.Register("TotalTracedRequests", this._tracedRequests); metricsTracker.Register("IncomingTracedRequests", this._incomingTracedRequests); metricsTracker.Register("IncomingNotTracedRequests", this._incomingNotTracedRequests); metricsTracker.Register("IncomingUndecidedRequests", this._incomingUndecidedRequests); this._tracedRequests = 0; this._incomingTracedRequests = 0; this._incomingNotTracedRequests = 0; this._incomingUndecidedRequests = 0; }
/// <inheritdoc/> public void ReportMetrics(IMetricsTracker metricsTracker) { metricsTracker.Register("DebugModeTracedRequests", this._debugModeTracedRequests); this._debugModeTracedRequests = 0; }
/// <inheritdoc/> public void ReportMetrics(IMetricsTracker metricsTracker) { metricsTracker.Register("ProbabilisticTracedRequests", this._probabilisticTracedRequests); this._probabilisticTracedRequests = 0; }