Sampling from a flowing stream of gas