def METHOD_NAME(self, _):
    try:
        super().METHOD_NAME(_)
    finally:
        if self.config.gitlab_url:
            # Service check to check GitLab's health endpoints
            for check_type, options in self.ALLOWED_SERVICE_CHECKS.items():
                self._check_health_endpoint(check_type, **options)
            self._submit_version()
        else:
            self.log.debug("gitlab_url not configured, service checks and version collection are skipped")