Log metrics more accurate with inner classes.