# File lib/new_relic/agent/datastores.rb, line 179
      def self.notice_statement(statement, elapsed)
        # Settings may change eventually, but for now we follow the same
        # capture rules as SQL for non-SQL statements.
        return unless NewRelic::Agent::Database.should_record_sql?

        agent = NewRelic::Agent.instance
        agent.transaction_sampler.notice_nosql_statement(statement, elapsed)
        nil
      end