Sha256: 20238f621b72220ad5ca11cb09be7d1fd99f66625372c69dfd9faf7fea32b08c
Contents?: true
Size: 743 Bytes
Versions: 4
Compression:
Stored size: 743 Bytes
Contents
# typed: true require 'datadog/tracing/contrib/dalli/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
4 entries across 4 versions & 1 rubygems