Calculate metric name from the current class.