Dear Student ,
Look according to the Biot-Savart's law magnetic field produced by a straight current carrying conductor is directly proportional to the current flowing through the wire and length element() of the wire and inversely proportional to the distance(r)between the point from the wire .
Therefore according to the Biot-savart's Law , magnetic field is ,
Regards