예제 #1
0
 public void Inspect(IDiagnosticsProbe 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()));
     });
 }
예제 #2
0
 public void Inspect(IDiagnosticsProbe probe)
 {
     probe.Add("mt.service_count", _catalog.NumberOfServices);
     _catalog.Services
     .Where(svc => svc.Implements <IDiagnosticsSource>())
     .Cast <IDiagnosticsSource>()
     .Each(src => src.Inspect(probe));
 }
예제 #3
0
        public void Inspect(IDiagnosticsProbe 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));
        }
예제 #4
0
 public void Inspect(IDiagnosticsProbe probe)
 {
     probe.Add("mt.network", _network);
 }
예제 #5
0
 public void Inspect(IDiagnosticsProbe probe)
 {
     probe.Add("health_client", "on");
     probe.Add("health_client.interval", _heartbeatIntervalInSeconds);
 }
예제 #6
0
 static void AddRunningInFullTrustValue(IDiagnosticsProbe probe)
 {
     probe.Add("process.fulltrust", IsRunningInFullTrust());
 }
예제 #7
0
 static void AddOperatingSystemValues(IDiagnosticsProbe probe)
 {
     probe.Add("os.version", Environment.OSVersion);
     probe.Add("os.bits", Environment.Is64BitOperatingSystem ? "x64" : "x32");
 }
예제 #8
0
 static void AddProcessValues(IDiagnosticsProbe probe)
 {
     probe.Add("process.id", Process.GetCurrentProcess().Id);
     probe.Add("process.bits", Environment.Is64BitProcess ? "x64" : "x32");
 }
예제 #9
0
 static void AddHostValues(IDiagnosticsProbe probe)
 {
     probe.Add("host.machine_name", Environment.MachineName);
     probe.Add("net.version", Environment.Version);
 }