A drug dealer with a years-long record of relatively small crimes found that trafficking in fentanyl was a “whole new ballgame,” according to a judge.