Example #1
0
 public BaseApiController(IQuarkMetric metric)
 {
     Metric = metric;
     //_user = new Lazy<PoolUser>(Init);
     //MetricsContext = Metric.Context("datapool");
     MetricsContext = metric;
 }
 public MetricsMiddleware(IQuarkMetric metric)
 {
     _metric               = metric;
     _timer                = _metric.Timer("request:timer", Unit.Requests);
     _activeRequests       = _metric.Counter("request:active", Unit.Custom("ActiveRequests"));
     _errorMeter           = _metric.Meter("request:errors", Unit.Errors);
     _payloadSizeHistogram = _metric.Histogram("request:payload_size", Unit.Bytes);
 }
 public SampleController(IQuarkMetric metric) : base(metric)
 {
 }