def sanitize_filter_value(value, depth)
      depth += 1
      if depth >= MAX_FILTER_DEPTH
        '[MAX_FILTER_DEPTH_REACHED]'
      elsif value.is_a?(Array)
        value.map { |array_value| sanitize_filter_value(array_value, depth) }
      elsif value.is_a?(Hash)
        sanitize_filter_hash(value, depth)
      else
        '?'
      end
    end
def sanitize_filter_value(value, depth)
      depth += 1
      if depth >= MAX_FILTER_DEPTH
        '[MAX_FILTER_DEPTH_REACHED]'
      elsif value.is_a?(Array)
        value.map { |array_value| sanitize_filter_value(array_value, depth) }
      elsif value.is_a?(Hash)
        sanitize_filter_hash(value, depth)
      else
        '?'
      end
    end
Transforms a value element into a useful, redacted, version

 @param value [Object] the filter value
 @param depth [Integer] the current filter depth

 @return [Array, Hash, String] the sanitized value