The correct use is Gitlab::ErrorTracking.track_exception
Attach a file by drag & drop or click to upload