public IDisposable CreateLoggingMetricsTimer(
            string entityName,
            [CallerMemberName] string actionName = null,
            object requestParams = null,
            params string[] additionalLabels)
        {
            var metricsTimer =
                new MetricsTimer(
                    Summary,
                    ConcatLabelValues(
                        actionName,
                        entityName,
                        _externalHttpServiceName,
                        null,
                        additionalLabels),
                    _longRequestTime,
                    requestParams,
                    _logSource);

            return(new TimersWrapper(metricsTimer));
        }
示例#2
0
 public TimersWrapper(MetricsTimer metricsTimer, TracingTimer tracingTimer)
 {
     _metricsTimer = metricsTimer;
     _tracingTimer = tracingTimer;
 }
示例#3
0
 public TimersWrapper(MetricsTimer metricsTimer)
 {
     _metricsTimer = metricsTimer;
 }