A microfabricated plasma generator and a method of generating a plasma, the plasma generator comprising: a substrate chip; a chamber defined by the substrate chip, the chamber including an inlet port through which analyte is in use delivered, an outlet port and a plasma-generation region in which a plasma is in use generated; and first and second electrodes across which a voltage is in use applied to generate a plasma in the plasma-generation region.