Ejemplo n.º 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()));
     });
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 4
0
 public void Inspect(IDiagnosticsProbe probe)
 {
     probe.Add("mt.network", _network);
 }
Ejemplo n.º 5
0
 public void Inspect(IDiagnosticsProbe probe)
 {
     probe.Add("health_client", "on");
     probe.Add("health_client.interval", _heartbeatIntervalInSeconds);
 }
Ejemplo n.º 6
0
 static void AddRunningInFullTrustValue(IDiagnosticsProbe probe)
 {
     probe.Add("process.fulltrust", IsRunningInFullTrust());
 }
Ejemplo n.º 7
0
 static void AddOperatingSystemValues(IDiagnosticsProbe probe)
 {
     probe.Add("os.version", Environment.OSVersion);
     probe.Add("os.bits", Environment.Is64BitOperatingSystem ? "x64" : "x32");
 }
Ejemplo n.º 8
0
 static void AddProcessValues(IDiagnosticsProbe probe)
 {
     probe.Add("process.id", Process.GetCurrentProcess().Id);
     probe.Add("process.bits", Environment.Is64BitProcess ? "x64" : "x32");
 }
Ejemplo n.º 9
0
 static void AddHostValues(IDiagnosticsProbe probe)
 {
     probe.Add("host.machine_name", Environment.MachineName);
     probe.Add("net.version", Environment.Version);
 }