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 authored Oct 18, 2022
1 parent a222ac3 commit 7b3e0ff
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 @@ -122,6 +117,11 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData)
this.UpdateInstrumentWithEvent(hasMean, eventSourceName, name, value);
}

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() } };

Expand Down

0 comments on commit 7b3e0ff

Please sign in to comment.