lib/opentelemetry/instrumentation/redis/patches/redis_v4_client.rb in opentelemetry-instrumentation-redis-0.24.0 vs lib/opentelemetry/instrumentation/redis/patches/redis_v4_client.rb in opentelemetry-instrumentation-redis-0.24.1
- old
+ new
@@ -70,10 +70,10 @@
# we want to short circuit parsing the commands
# and return the obfuscated command
return 'AUTH ?' if command[0] == :auth
if instrumentation_config[:db_statement] == :obfuscate
- 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