lib/opentelemetry/instrumentation/redis/middlewares/redis_client.rb in opentelemetry-instrumentation-redis-0.24.0 vs lib/opentelemetry/instrumentation/redis/middlewares/redis_client.rb in opentelemetry-instrumentation-redis-0.24.1

- old
+ new

@@ -57,10 +57,10 @@ obfuscate = instrumentation.config[:db_statement] == :obfuscate serialized_commands = commands.map do |command| # If we receive an authentication request command we want to obfuscate it if obfuscate || command[0].match?(/\A(AUTH|HELLO)\z/) - command[0].to_s.upcase + ' ?' * (command.size - 1) + command[0].to_s.upcase + (' ?' * (command.size - 1)) else command_copy = command.dup command_copy[0] = command_copy[0].to_s.upcase command_copy.join(' ') end