Class ThreadPoolEventsListener
- Namespace
- Steeltoe.Management.Endpoint.Metrics.Observer
- Assembly
- Steeltoe.Management.EndpointBase.dll
This EventSourceListener listens on the following events: ThreadPoolWorkerThreadStart, ThreadPoolWorkerThreadWait, ThreadPoolWorkerThreadStop, IOThreadCreate_V1, IOThreadRetire_V1, IOThreadUnretire_V1, IOThreadTerminate And Records the following values: ActiveWorkerThreadCount - UInt32 - Number of worker threads available to process work, including those that are already processing work. RetiredWorkerThreadCount - UInt32 - Number of worker threads that are not available to process work, but that are being held in reserve in case more threads are needed later.
[Obsolete("Use CLRRuntimeObserver instead")]
public class ThreadPoolEventsListener : EventSourceListener, IDisposable
- Inheritance
-
ThreadPoolEventsListener
- Implements
- Inherited Members
Constructors
ThreadPoolEventsListener(ILogger<EventSourceListener>)
public ThreadPoolEventsListener(ILogger<EventSourceListener> logger = null)
Parameters
logger
ILogger<EventSourceListener>
Methods
GetLabelSet(string)
protected IDictionary<string, object> GetLabelSet(string eventName)
Parameters
eventName
string
Returns
OnEventSourceCreated(EventSource)
Called for all existing event sources when the event listener is created and when a new event source is attached to the listener.
protected override void OnEventSourceCreated(EventSource eventSource)
Parameters
eventSource
EventSourceThe event source.
OnEventWritten(EventWrittenEventArgs)
Called whenever an event has been written by an event source for which the event listener has enabled events.
protected override void OnEventWritten(EventWrittenEventArgs eventData)
Parameters
eventData
EventWrittenEventArgsThe event arguments that describe the event.