From 8b6186c134ad4b32925cb78f64656c385e3a01d0 Mon Sep 17 00:00:00 2001 From: Samuele Date: Mon, 17 Jun 2024 17:39:30 +0200 Subject: [PATCH] fix(propagation): remove redundant warning messages (#13220) The propagation module logs some redundant warning messages that are already printed, when necessary, during schema validation, with logic that also checks the "old default" value. This commit removes the unnecessary messages. --- .../kong/fix-propagation-remove-redundant-warnings.yml | 3 +++ kong/tracing/propagation/init.lua | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) create mode 100644 changelog/unreleased/kong/fix-propagation-remove-redundant-warnings.yml diff --git a/changelog/unreleased/kong/fix-propagation-remove-redundant-warnings.yml b/changelog/unreleased/kong/fix-propagation-remove-redundant-warnings.yml new file mode 100644 index 000000000000..da45591d4f26 --- /dev/null +++ b/changelog/unreleased/kong/fix-propagation-remove-redundant-warnings.yml @@ -0,0 +1,3 @@ +message: "**OpenTelemetry / Zipkin**: remove redundant deprecation warnings" +type: bugfix +scope: Plugin diff --git a/kong/tracing/propagation/init.lua b/kong/tracing/propagation/init.lua index 7ee0ba3b02ee..5e724113a28c 100644 --- a/kong/tracing/propagation/init.lua +++ b/kong/tracing/propagation/init.lua @@ -33,11 +33,6 @@ local function get_plugin_params(config) if (config.default_header_type or null) ~= null then propagation_config.default_format = config.default_header_type - - kong.log.warn( - "the default_header_type parameter is deprecated, please update your " - .. "configuration to use the propagation.default_format, " - .. "propagation.extract and propagation.inject options instead") end if (config.header_type or null) ~= null then @@ -75,10 +70,6 @@ local function get_plugin_params(config) config.header_type } end - - kong.log.warn( - "the header_type parameter is deprecated, please update your " - .. "configuration to use propagation.extract and propagation.inject instead") end return propagation_config