In-line monitoring