Sha256: a9951260f58dd56405feb2a99d5b464e8bb6b0b6e74d367286c6f5b5d0f9e7a6
Contents?: true
Size: 722 Bytes
Versions: 12
Compression:
Stored size: 722 Bytes
Contents
# typed: true require_relative 'ext' module Datadog module Tracing 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 = 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 end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems