From 7c1f5383d1160861c0bc9e361d93d000712092c3 Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Tue, 18 Oct 2022 03:09:23 +0000 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..f4c92ad5c2 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) @@ -125,6 +120,11 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData) private static Dictionary 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