Пример #1
0
 public override IInterceptor CreateInterceptor(IProxyRequest request)
 {
     if (interceptor == null)
     {
         MetricName     metricName = Utils.BuildName(request, Name, Absolute);
         MetricRegistry registry   = request.Context.Kernel.Get <MetricRegistry>();
         Counter        counter    = registry.Counter(metricName);
         interceptor = new CountingInterceptor(counter, Monotonic);
     }
     return(interceptor);
 }
Пример #2
0
 public override IInterceptor CreateInterceptor(IProxyRequest request)
 {
     if (interceptor == null)
     {
         MetricName metricName = Utils.BuildName(request, Name, Absolute);
         MetricRegistry registry = request.Context.Kernel.Get<MetricRegistry>();
         Counter counter = registry.Counter(metricName);
         interceptor = new CountingInterceptor(counter, Monotonic);
     }
     return interceptor;
 }