Method: Datadog::Contrib::Redis::Quantize.format_command_args

Defined in:
lib/ddtrace/contrib/redis/quantize.rb

.format_command_args(command_args) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/ddtrace/contrib/redis/quantize.rb', line 22

def format_command_args(command_args)
  command_args = resolve_command_args(command_args)
  return 'AUTH ?' if auth_command?(command_args)

  cmd = command_args.map { |x| format_arg(x) }.join(' ')
  Utils.truncate(cmd, CMD_MAX_LEN, TOO_LONG_MARK)
end