예제 #1
0
        static void AddOperatingSystemValues(DiagnosticsProbe probe)
        {
            probe.Add("os.version", Environment.OSVersion);
#if NET40
            probe.Add("os.bits", Environment.Is64BitOperatingSystem ? "x64" : "x32");
#endif
        }
예제 #2
0
        static void AddProcessValues(DiagnosticsProbe probe)
        {
            probe.Add("process.id", Process.GetCurrentProcess().Id);
#if NET40
            probe.Add("process.bits", Environment.Is64BitProcess ? "x64" : "x32");
#endif
        }
예제 #3
0
        static void AddOperatingSystemValues(DiagnosticsProbe probe)
        {
            probe.Add("os.version", Environment.OSVersion);
#if NET40
            probe.Add("os.bits", Environment.Is64BitOperatingSystem ? "x64" : "x32");
#endif
        }
예제 #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
        }
예제 #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()));
     }
 }
예제 #6
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()));
     });
 }
예제 #7
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));
 }
예제 #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));
        }
예제 #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));
 }
예제 #10
0
 static void AddRunningInFullTrustValue(DiagnosticsProbe probe)
 {
     probe.Add("process.fulltrust", IsRunningInFullTrust());
 }
예제 #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()));
	        }
	    }
예제 #12
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.network", _network);
 }
예제 #13
0
 static void AddHostValues(DiagnosticsProbe probe)
 {
     probe.Add("host.machine_name", Environment.MachineName);
     probe.Add("net.version", Environment.Version);
 }
예제 #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()));
             });
 }
예제 #15
0
 static void AddRunningInFullTrustValue(DiagnosticsProbe probe)
 {
     probe.Add("process.fulltrust", IsRunningInFullTrust());
 }
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.network", _network);
 }
예제 #17
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("health_client", "on");
     probe.Add("health_client.interval", _heartbeatIntervalInSeconds);
 }
예제 #18
0
 static void AddHostValues(DiagnosticsProbe probe)
 {
     probe.Add("host.machine_name", Environment.MachineName);
     probe.Add("net.version", Environment.Version);
 }
예제 #19
0
 public void Inspect(DiagnosticsProbe probe)
 {
     probe.Add("mt.bus", "in-memory");
 }