Sha256: fa52b153c28cc1eed1b5a7b088133f08909ea1a1654cbf912fa4a4796799a638
Contents?: true
Size: 651 Bytes
Versions: 21
Compression:
Stored size: 651 Bytes
Contents
require 'ddtrace/contrib/dalli/ext' module Datadog module Contrib module Dalli # Quantize contains dalli-specic quantization tools. module Quantize module_function def format_command(operation, args) placeholder = "#{operation} BLOB (OMITTED)" command = [operation, *args].join(' ').strip command = Utils.utf8_encode(command, binary: true, placeholder: placeholder) Utils.truncate(command, Ext::QUANTIZE_MAX_CMD_LENGTH) rescue => e Datadog.logger.debug("Error sanitizing Dalli operation: #{e}") placeholder end end end end end
Version data entries
21 entries across 21 versions & 2 rubygems