Table of Contents

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

ConcurrentDictionary<string, Counter<double>>

LongCounters

protected ConcurrentDictionary<string, Counter<long>> LongCounters { get; set; }

Property Value

ConcurrentDictionary<string, Counter<long>>

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 string
eventData EventWrittenEventArgs
labels IDictionary<string, object>
ignorePayloadNames string[]
counterNames string[]

SafelyEnableEvents(EventSource, EventLevel, EventKeywords)

protected void SafelyEnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword)

Parameters

eventSource EventSource
level EventLevel
matchAnyKeyword EventKeywords