Measurement of discharge using tracers