From f5c5c2d26d5bba8ba38341f02e43b81b87d15cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kie=C5=82kowicz?= Date: Wed, 20 Sep 2023 21:05:29 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> --- .../Implementation/ElasticsearchInstrumentationEventSource.cs | 2 +- .../Implementation/QuartzInstrumentationEventSource.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenTelemetry.Instrumentation.ElasticsearchClient/Implementation/ElasticsearchInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.ElasticsearchClient/Implementation/ElasticsearchInstrumentationEventSource.cs index b64236af50..757eb90ce9 100644 --- a/src/OpenTelemetry.Instrumentation.ElasticsearchClient/Implementation/ElasticsearchInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.ElasticsearchClient/Implementation/ElasticsearchInstrumentationEventSource.cs @@ -61,6 +61,6 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, Ex [Event(3, Message = "Unknown error processing event '{1}' from handler '{0}', Exception: {2}", Level = EventLevel.Error)] public void UnknownErrorProcessingEvent(string handlerName, string eventName, string ex) { - this.WriteEvent(2, handlerName, eventName, ex); + this.WriteEvent(3, handlerName, eventName, ex); } } diff --git a/src/OpenTelemetry.Instrumentation.Quartz/Implementation/QuartzInstrumentationEventSource.cs b/src/OpenTelemetry.Instrumentation.Quartz/Implementation/QuartzInstrumentationEventSource.cs index f44f77bc81..03a88401fd 100644 --- a/src/OpenTelemetry.Instrumentation.Quartz/Implementation/QuartzInstrumentationEventSource.cs +++ b/src/OpenTelemetry.Instrumentation.Quartz/Implementation/QuartzInstrumentationEventSource.cs @@ -67,6 +67,6 @@ public void UnknownErrorProcessingEvent(string handlerName, string eventName, Ex [Event(4, Message = "Unknown error processing event '{1}' from handler '{0}', Exception: {2}", Level = EventLevel.Error)] public void UnknownErrorProcessingEvent(string handlerName, string eventName, string ex) { - this.WriteEvent(2, handlerName, eventName, ex); + this.WriteEvent(4, handlerName, eventName, ex); } }