Example #1
0
        static void AddOperatingSystemValues(DiagnosticsProbe probe)
        {
            probe.Add("os.version", Environment.OSVersion);
#if NET40
            probe.Add("os.bits", Environment.Is64BitOperatingSystem ? "x64" : "x32");
#endif
        }
        static void AddProcessValues(DiagnosticsProbe probe)
        {
            probe.Add("process.id", Process.GetCurrentProcess().Id);
#if NET40
            probe.Add("process.bits", Environment.Is64BitProcess ? "x64" : "x32");
#endif
        }
        static void AddOperatingSystemValues(DiagnosticsProbe probe)
        {
            probe.Add("os.version", Environment.OSVersion);
#if NET40
            probe.Add("os.bits", Environment.Is64BitOperatingSystem ? "x64" : "x32");
#endif
        }
Example #4
0
        static void AddProcessValues(DiagnosticsProbe probe)
        {
            probe.Add("process.id", Process.GetCurrentProcess().Id);
#if NET40
            probe.Add("process.bits", Environment.Is64BitProcess ? "x64" : "x32");
#endif
        }
Example #5
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.default_serializer", _defaults.Serializer.GetType().ToShortTypeName());
     foreach (var scheme in _transportFactories)
     {
         probe.Add("mt.transport", string.Format("[{0}] {1}", scheme.Key, scheme.Value.GetType().ToShortTypeName()));
     }
 }
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.default_serializer", _defaults.Serializer.GetType().ToShortTypeName());
     _transportFactories.Each(
         (scheme, factory) =>
     {
         probe.Add("mt.transport",
                   string.Format("[{0}] {1}", scheme, factory.GetType().ToShortTypeName()));
     });
 }
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.service_count", _catalog.NumberOfServices);
     _catalog.Services
     .Where(svc => svc.Implements <DiagnosticsSource>())
     .Cast <DiagnosticsSource>()
     .Each(src => src.Inspect(probe));
 }
Example #8
0
        public void Inspect(DiagnosticsProbe probe)
        {
            new StandardDiagnosticsInfo().WriteCommonItems(probe);

            probe.Add("mt.version", typeof(IServiceBus).Assembly.GetName().Version);
            probe.Add("mt.receive_from", Endpoint.Address);
            probe.Add("mt.control_bus", ControlBus.Endpoint.Address);
            probe.Add("mt.max_consumer_threads", MaximumConsumerThreads);
            probe.Add("mt.concurrent_receive_threads", ConcurrentReceiveThreads);
            probe.Add("mt.receive_timeout", ReceiveTimeout);

            EndpointCache.Inspect(probe);
            _serviceContainer.Inspect(probe);

            OutboundPipeline.View(pipe => probe.Add("zz.mt.outbound_pipeline", pipe));
            InboundPipeline.View(pipe => probe.Add("zz.mt.inbound_pipeline", pipe));
        }
Example #9
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.service_count", _catalog.NumberOfServices);
     _catalog.Services
         .Where(svc => svc.Implements<DiagnosticsSource>())
         .Cast<DiagnosticsSource>()
         .Each(src => src.Inspect(probe));
 }
 static void AddRunningInFullTrustValue(DiagnosticsProbe probe)
 {
     probe.Add("process.fulltrust", IsRunningInFullTrust());
 }
Example #11
0
	    public void Inspect(DiagnosticsProbe probe)
	    {
            probe.Add("mt.default_serializer", _defaults.Serializer.GetType().ToShortTypeName());
	        foreach (var scheme in _transportFactories)
	        {
	            probe.Add("mt.transport", string.Format("[{0}] {1}", scheme.Key , scheme.Value.GetType().ToShortTypeName()));
	        }
	    }
Example #12
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.network", _network);
 }
 static void AddHostValues(DiagnosticsProbe probe)
 {
     probe.Add("host.machine_name", Environment.MachineName);
     probe.Add("net.version", Environment.Version);
 }
Example #14
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.default_serializer", _defaults.Serializer.GetType().ToShortTypeName());
     _transportFactories.Each(
         (scheme, factory) =>
             {
                 probe.Add("mt.transport",
                     string.Format("[{0}] {1}", scheme, factory.GetType().ToShortTypeName()));
             });
 }
Example #15
0
 static void AddRunningInFullTrustValue(DiagnosticsProbe probe)
 {
     probe.Add("process.fulltrust", IsRunningInFullTrust());
 }
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.network", _network);
 }
Example #17
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("health_client", "on");
     probe.Add("health_client.interval", _heartbeatIntervalInSeconds);
 }
Example #18
0
 static void AddHostValues(DiagnosticsProbe probe)
 {
     probe.Add("host.machine_name", Environment.MachineName);
     probe.Add("net.version", Environment.Version);
 }
Example #19
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.bus", "in-memory");
 }