refactor(ssh): remove Sentry retry event tracking from ExecuteRemoteCommand

Remove the trackSshRetryEvent() call from SSH retry handling. This tracking is no longer
needed in the retry logic.
This commit is contained in:
Andras Bacsai 2026-03-12 13:01:18 +01:00
parent 709e5e882e
commit ebfa53d9ca

View file

@ -111,13 +111,6 @@ public function execute_remote_command(...$commands)
$attempt++;
$delay = $this->calculateRetryDelay($attempt - 1);
// Track SSH retry event in Sentry
$this->trackSshRetryEvent($attempt, $maxRetries, $delay, $errorMessage, [
'server' => $this->server->name ?? $this->server->ip ?? 'unknown',
'command' => $this->redact_sensitive_info($command),
'trait' => 'ExecuteRemoteCommand',
]);
// Add log entry for the retry
if (isset($this->application_deployment_queue)) {
$this->addRetryLogEntry($attempt, $maxRetries, $delay, $errorMessage);