def collect_information(identifier, group_id)
      group = ::BetterRailsDebugger::AnalysisGroup.find group_id
      if not group.present?
        Rails.logger.error "[BetterRailsDebugger] Group '#{recorded[:group_id]}' not found. Skiping..."
        return
      end

      # Load Mongo db if required
      if not Mongoid::Config.configured?
        Mongoid.load!(BetterRailsDebugger::Configuration.instance.mongoid_config_file, Rails.env.to_sym)
        Mongoid.logger.level = Logger::FATAL
      end

      instance = ::BetterRailsDebugger::GroupInstance.create identifier: identifier, analysis_group_id: group_id, caller_file: caller[3][/[^:]+/], status: 'pending'

      collect_memory_information(instance)
      collect_trace_point_history(instance)

      # Now, it's time to analyze all collected data and generate a report
      ::BetterRailsDebugger::AnalysisRecorderJob.perform_later({ instance_id: instance.id.to_s })
    end
def collect_information(identifier, group_id)
      group = ::BetterRailsDebugger::AnalysisGroup.find group_id
      if not group.present?
        Rails.logger.error "[BetterRailsDebugger] Group '#{recorded[:group_id]}' not found. Skiping..."
        return
      end

      # Load Mongo db if required
      if not Mongoid::Config.configured?
        Mongoid.load!(BetterRailsDebugger::Configuration.instance.mongoid_config_file, Rails.env.to_sym)
        Mongoid.logger.level = Logger::FATAL
      end

      instance = ::BetterRailsDebugger::GroupInstance.create identifier: identifier, analysis_group_id: group_id, caller_file: caller[3][/[^:]+/], status: 'pending'

      collect_memory_information(instance)
      collect_trace_point_history(instance)

      # Now, it's time to analyze all collected data and generate a report
      ::BetterRailsDebugger::AnalysisRecorderJob.perform_later({ instance_id: instance.id.to_s })
    end
Record into db, information about object creation