Sha256: 4dd22fdb84283597f262c7e027436e967f0f9108fc726cb6a5f8d318c6de8564
Contents?: true
Size: 738 Bytes
Versions: 14
Compression:
Stored size: 738 Bytes
Contents
# frozen_string_literal: 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
14 entries across 14 versions & 1 rubygems