Abstract: A method for liberating gas from drilling mud, the method having the following steps: agitating the drilling mud with an agitator powered by a motor, whereby gas is liberated from the drilling mud; enclosing the liberated gas in an enclosure; and pumping the liberated gas from the enclosure with a pump powered by the motor of the agitating. A gas trap having: an enclosure comprising an orifice through which fluid enters the enclosure; an agitator of fluid, positioned within the enclosure; a gas pump in fluid communication with the enclosure; and a motor in power transmitting communication with the agitator and the gas pump.