lib/opentelemetry/instrumentation/redis/patches/client.rb in opentelemetry-instrumentation-redis-0.21.2 vs lib/opentelemetry/instrumentation/redis/patches/client.rb in opentelemetry-instrumentation-redis-0.21.3

- old
+ new

@@ -69,14 +69,15 @@ # If we receive an authentication request command # we want to short circuit parsing the commands # and return the obfuscated command return 'AUTH ?' if command[0] == :auth - command[0] = command[0].to_s.upcase if config[:db_statement] == :obfuscate - command[0] + ' ?' * (command.size - 1) + command[0].to_s.upcase + ' ?' * (command.size - 1) else - command.join(' ') + command_copy = command.dup + command_copy[0] = command_copy[0].to_s.upcase + command_copy.join(' ') end end.join("\n") end def tracer