module Datadog::Tracing::Contrib::Dalli::Quantize

def format_command(operation, args)

def format_command(operation, args)
  placeholder = "#{operation} BLOB (OMITTED)"
  command = [operation, *args].join(' ').strip
  command = Core::Utils.utf8_encode(command, binary: true, placeholder: placeholder)
  Core::Utils.truncate(command, Ext::QUANTIZE_MAX_CMD_LENGTH)
rescue => e
  Datadog.logger.debug("Error sanitizing Dalli operation: #{e}")
  placeholder
end