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 }
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)); }
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)); }
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()); }
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.network", _network); }
static void AddHostValues(DiagnosticsProbe probe) { probe.Add("host.machine_name", Environment.MachineName); probe.Add("net.version", Environment.Version); }
public void Inspect(DiagnosticsProbe probe) { probe.Add("health_client", "on"); probe.Add("health_client.interval", _heartbeatIntervalInSeconds); }
public void Inspect(DiagnosticsProbe probe) { probe.Add("mt.bus", "in-memory"); }