Skip to content

Commit

Permalink
fix(propagation): remove redundant warning messages (#13220)
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 8b6186c)
  • Loading branch information
samugi committed Jun 18, 2024
1 parent 434f7f4 commit b03b68e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "**OpenTelemetry / Zipkin**: remove redundant deprecation warnings"
type: bugfix
scope: Plugin
9 changes: 0 additions & 9 deletions kong/tracing/propagation/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,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
Expand Down Expand Up @@ -82,10 +77,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
Expand Down

0 comments on commit b03b68e

Please sign in to comment.