55 public AggregationManager(
int maxTimeSeries,
int maxHistograms,
Action<Instrument, LabeledAggregationStatistics> collectMeasurement,
Action<DateTime, DateTime> beginCollection,
Action<DateTime, DateTime> endCollection,
Action<Instrument> beginInstrumentMeasurements,
Action<Instrument> endInstrumentMeasurements,
Action<Instrument> instrumentPublished, Action
initialInstrumentEnumerationComplete,
Action<Exception> collectionError, Action
timeSeriesLimitReached, Action
histogramLimitReached,
Action<Exception> observableInstrumentCallbackError)
151 _collectThread.IsBackground =
true;
152 _collectThread.Name =
"MetricsEventSource CollectWorker";
254 type2 = (type.IsGenericType ?
type.GetGenericTypeDefinition() :
null);
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool TryAdd(TKey key, TValue value)
void Add(TKey key, TValue value)
void RemoveInstrumentState(Instrument instrument, InstrumentState state)
readonly List< Predicate< Instrument > > _instrumentConfigFuncs
readonly Action _timeSeriesLimitReached
bool CheckTimeSeriesAllowed()
void Include(string meterName, string instrumentName)
readonly Action _initialInstrumentEnumerationComplete
AggregationManager(int maxTimeSeries, int maxHistograms, Action< Instrument, LabeledAggregationStatistics > collectMeasurement, Action< DateTime, DateTime > beginCollection, Action< DateTime, DateTime > endCollection, Action< Instrument > beginInstrumentMeasurements, Action< Instrument > endInstrumentMeasurements, Action< Instrument > instrumentPublished, Action initialInstrumentEnumerationComplete, Action< Exception > collectionError, Action timeSeriesLimitReached, Action histogramLimitReached, Action< Exception > observableInstrumentCallbackError)
AggregationManager SetCollectionPeriod(TimeSpan collectionPeriod)
void Include(Predicate< Instrument > instrumentFilter)
readonly Action< Instrument > _instrumentPublished
void CollectWorker(CancellationToken cancelToken)
bool CheckHistogramAllowed()
readonly ConcurrentDictionary< Instrument, InstrumentState > _instrumentStates
readonly int _maxTimeSeries
readonly int _maxHistograms
Func< Aggregator > GetAggregatorFactory(Instrument instrument)
static readonly QuantileAggregation s_defaultHistogramConfig
readonly Action< Instrument > _beginInstrumentMeasurements
TimeSpan _collectionPeriod
readonly MeterListener _listener
void Include(string meterName)
readonly Action< DateTime, DateTime > _endCollection
readonly Action< DateTime, DateTime > _beginCollection
readonly Action< Exception > _collectionError
readonly Action _histogramLimitReached
InstrumentState GetInstrumentState(Instrument instrument)
InstrumentState BuildInstrumentState(Instrument instrument)
readonly Action< Instrument, LabeledAggregationStatistics > _collectMeasurement
readonly CancellationTokenSource _cts
readonly Action< Exception > _observableInstrumentCallbackError
readonly Action< Instrument > _endInstrumentMeasurements
void RecordObservableInstruments()
void EnableMeasurementEvents(Instrument instrument, object? state=null)
static double Ceiling(double a)
bool Join(int millisecondsTimeout)
void Start(object? parameter)
delegate void ThreadStart()
static unsafe DateTime UtcNow