From 7b3e0ff4a4a915ddf8b4f643d4cc7d956f43774a Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Mon, 17 Oct 2022 17:52:48 -0700 Subject: [PATCH] Match repo-prefered code style --- .../EventCountersMetrics.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenTelemetry.Instrumentation.EventCounters/EventCountersMetrics.cs b/src/OpenTelemetry.Instrumentation.EventCounters/EventCountersMetrics.cs index b7797eeb97..2f49fbff06 100644 --- a/src/OpenTelemetry.Instrumentation.EventCounters/EventCountersMetrics.cs +++ b/src/OpenTelemetry.Instrumentation.EventCounters/EventCountersMetrics.cs @@ -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)); - } /// protected override void OnEventWritten(EventWrittenEventArgs eventData) @@ -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 GetEnableEventsArguments(EventCountersInstrumentationOptions options) => new() { { "EventCounterIntervalSec", options.RefreshIntervalSecs.ToString() } };