From 1c0fbc8105697f467018b78b473b9153693e1c0d Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Tue, 2 Jan 2024 14:10:25 -0500 Subject: [PATCH] NH-64310: remove the logic that set obfuscate for db from sw side --- lib/solarwinds_apm/otel_config.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/solarwinds_apm/otel_config.rb b/lib/solarwinds_apm/otel_config.rb index 44b01b1f..01072a4e 100644 --- a/lib/solarwinds_apm/otel_config.rb +++ b/lib/solarwinds_apm/otel_config.rb @@ -65,20 +65,6 @@ def self.resolve_response_propagator end end - def self.obfuscate_helper(instrumentation) - if @@config_map[instrumentation] # user provided the option - @@config_map[instrumentation][:db_statement] = :obfuscate unless @@config_map[instrumentation][:db_statement] # user provided the db_statement, ignore our default setting - else - @@config_map[instrumentation] = {db_statement: :obfuscate} - end - end - - def self.obfuscate_query - obfuscate_helper("OpenTelemetry::Instrumentation::Dalli") - obfuscate_helper("OpenTelemetry::Instrumentation::Mysql2") - obfuscate_helper("OpenTelemetry::Instrumentation::PG") - end - def self.[](key) @@config[key.to_sym] end @@ -132,8 +118,6 @@ def self.initialize resolve_solarwinds_processor resolve_response_propagator - obfuscate_query - print_config if SolarWindsAPM.logger.level.zero? ENV['OTEL_TRACES_EXPORTER'] = 'none' if ENV['OTEL_TRACES_EXPORTER'].to_s.empty?