Skip to content

Commit

Permalink
@MihaZupan Match repo-prefered code style part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan authored Oct 18, 2022
1 parent 7b3e0ff commit d3a5c03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData)
this.UpdateInstrumentWithEvent(hasMean, eventSourceName, name, value);
}

private static Dictionary<string, string> GetEnableEventsArguments(EventCountersInstrumentationOptions options) =>
new() { { "EventCounterIntervalSec", options.RefreshIntervalSecs.ToString() } };

private void EnableEvents(EventSource eventSource)
{
this.EnableEvents(eventSource, EventLevel.Critical, EventKeywords.None, GetEnableEventsArguments(this.options));
}

private static Dictionary<string, string> GetEnableEventsArguments(EventCountersInstrumentationOptions options) =>
new() { { "EventCounterIntervalSec", options.RefreshIntervalSecs.ToString() } };

private void UpdateInstrumentWithEvent(bool isGauge, string eventSourceName, string name, double value)
{
try
Expand Down

0 comments on commit d3a5c03

Please sign in to comment.