/// <inheritdoc />
        public void Mark(MeterOptions options, long amount, Action <MetricItem> itemSetup)
        {
            var item = new MetricItem();

            itemSetup(item);
            _registry.Meter(options, () => _meterBuilder.Build(_clock)).Mark(item, amount);
        }
Esempio n. 2
0
 /// <inheritdoc />
 public void Mark(MeterOptions options, long amount, string item)
 {
     _registry.Meter(options, () => _meterBuilder.Build(_clock)).Mark(item, amount);
 }
Esempio n. 3
0
 /// <inheritdoc />
 public void Mark(MeterOptions options, MetricTags tags, long amount, MetricSetItem setItem)
 {
     _registry.Meter(options, tags, () => _meterBuilder.Build(_clock)).Mark(setItem, amount);
 }
Esempio n. 4
0
 /// <inheritdoc />
 public void Mark(MeterOptions options, MetricSetItem setItem)
 {
     _registry.Meter(options, () => _meterBuilder.Build(_clock)).Mark(setItem);
 }
Esempio n. 5
0
 /// <inheritdoc />
 public void Mark(MeterOptions options, MetricTags tags, string item)
 {
     _registry.Meter(options, tags, () => _meterBuilder.Build(_clock)).Mark(item);
 }
Esempio n. 6
0
 /// <inheritdoc />
 public void Mark(MeterOptions options)
 {
     _registry.Meter(options, () => _meterBuilder.Build(_clock)).Mark();
 }
 /// <inheritdoc />
 public IMeter Instance <T>(MeterOptions options, MetricTags tags, Func <T> builder)
     where T : IMeterMetric
 {
     return(_registry.Meter(options, tags, builder));
 }
 /// <inheritdoc />
 public IMeter Instance(MeterOptions options, MetricTags tags)
 {
     return(Instance(options, tags, () => _meterBuilder.Build(_clock)));
 }
 /// <inheritdoc />
 public void Mark(MeterOptions options, long amount, MetricSetItem itemSetup)
 {
     _registry.Meter(options, () => _meterBuilder.Build(_clock)).Mark(itemSetup, amount);
 }