Skip to content

Commit

Permalink
Match repo-prefered code style
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Oct 18, 2022
1 parent a222ac3 commit 7c1f538
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ protected override void OnEventSourceCreated(EventSource eventSource)
}
}
}

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

/// <inheritdoc />
protected override void OnEventWritten(EventWrittenEventArgs eventData)
Expand Down Expand Up @@ -125,6 +120,11 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData)
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 void UpdateInstrumentWithEvent(bool isGauge, string eventSourceName, string name, double value)
{
try
Expand Down

0 comments on commit 7c1f538

Please sign in to comment.