Class EventSourceListener
- Namespace
- Steeltoe.Management.Endpoint.Metrics.Observer
- Assembly
- Steeltoe.Management.EndpointBase.dll
public class EventSourceListener : EventListener, IDisposable
- Inheritance
-
EventSourceListener
- Implements
- Derived
- Inherited Members
Properties
DoubleCounters
protected ConcurrentDictionary<string, Counter<double>> DoubleCounters { get; set; }
Property Value
LongCounters
protected ConcurrentDictionary<string, Counter<long>> LongCounters { get; set; }
Property Value
Methods
Dispose()
Releases the resources used by the current instance of the EventListener class.
public override void Dispose()
ExtractAndRecordMetric(string, EventWrittenEventArgs, IDictionary<string, object>, string[], string[])
protected virtual void ExtractAndRecordMetric(string eventSourceName, EventWrittenEventArgs eventData, IDictionary<string, object> labels, string[] ignorePayloadNames = null, string[] counterNames = null)
Parameters
eventSourceName
stringeventData
EventWrittenEventArgslabels
IDictionary<string, object>ignorePayloadNames
string[]counterNames
string[]
SafelyEnableEvents(EventSource, EventLevel, EventKeywords)
protected void SafelyEnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword)
Parameters
eventSource
EventSourcelevel
EventLevelmatchAnyKeyword
EventKeywords