From 60b1231678e521798e8cb55290d6b0a49178ca95 Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Wed, 7 Aug 2024 11:25:44 -0400 Subject: [PATCH] fix: fix the issue of wrong log msg --- instrumentation/base/lib/opentelemetry/instrumentation/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/base/lib/opentelemetry/instrumentation/base.rb b/instrumentation/base/lib/opentelemetry/instrumentation/base.rb index 8c9ac0e3f..ddf828955 100644 --- a/instrumentation/base/lib/opentelemetry/instrumentation/base.rb +++ b/instrumentation/base/lib/opentelemetry/instrumentation/base.rb @@ -304,7 +304,7 @@ def config_options(user_config) h[option_name] = option[:default] end - dropped_config_keys = user_config.keys - validated_config.keys + dropped_config_keys = user_config.keys - validated_config.keys - [:enabled] OpenTelemetry.logger.warn("Instrumentation #{name} ignored the following unknown configuration options #{dropped_config_keys}") unless dropped_config_keys.empty? validated_config