Method: Datadog::Tracing::Contrib::Utils::Quantization::Hash.format_value

Defined in:
lib/datadog/tracing/contrib/utils/quantization/hash.rb

.format_value(value, options = {}) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/datadog/tracing/contrib/utils/quantization/hash.rb', line 52

def format_value(value, options = {})
  return value if options[:show] == :all

  case value
  when ::Hash
    format_hash(value, options)
  when Array
    # If any are objects, format them.
    format_array(value, options)
  else
    options[:placeholder]
  end
end