Beispiel #1
0
        public virtual async Task SendAsync(BrokeredMessage message)
        {
            var stopwatch = Stopwatch.StartNew();

            _statsd.LogCount("dependencies.servicebus.send");
            _statsd.LogGauge("dependencies.servicebus.messagesize", (int)message.Size);

            await _topicClient.SendAsync(message).ConfigureAwait(false);

            stopwatch.Stop();
            _statsd.LogTiming("dependencies.servicebus.send", stopwatch.ElapsedMilliseconds);
        }
        public override void Execute(IVeStatsDClient client)
        {
            var processorTime = System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime.Milliseconds;

            client.LogGauge("process.processortime", processorTime);
        }
 public override void Execute(IVeStatsDClient client)
 {
     var memoryUsageInMegaBytes = (System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1024) / 1024;
     client.LogGauge("process.memoryusage", (int) memoryUsageInMegaBytes);
 }
        public override void Execute(IVeStatsDClient client)
        {
            var memoryUsageInMegaBytes = (System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1024) / 1024;

            client.LogGauge("process.memoryusage", (int)memoryUsageInMegaBytes);
        }
 public override void Execute(IVeStatsDClient client)
 {
     var threads = System.Diagnostics.Process.GetCurrentProcess().Threads.Count;
     client.LogGauge("process.threads", threads);
 }
 public override void Execute(IVeStatsDClient client)
 {
     var processorTime = System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime.Milliseconds;
     client.LogGauge("process.processortime", processorTime);
 }
        public override void Execute(IVeStatsDClient client)
        {
            var threads = System.Diagnostics.Process.GetCurrentProcess().Threads.Count;

            client.LogGauge("process.threads", threads);
        }