Sha256: 3a56283acea73bd505d6d17f280c451ef0b50684e3664030878a78ed7ce34340

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

module Datadog
  module Contrib
    module Dalli
      # Quantize contains dalli-specic quantization tools.
      module Quantize
        MAX_CMD_LENGTH = 100

        module_function

        def format_command(operation, args)
          command = [operation, *args].join(' ').strip
          Utils.truncate(command, MAX_CMD_LENGTH)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.11.0.beta1 lib/ddtrace/contrib/dalli/quantize.rb
ddtrace-0.10.0 lib/ddtrace/contrib/dalli/quantize.rb
ddtrace-0.9.2 lib/ddtrace/contrib/dalli/quantize.rb
ddtrace-0.9.1 lib/ddtrace/contrib/dalli/quantize.rb
ddtrace-0.9.0 lib/ddtrace/contrib/dalli/quantize.rb