Skip to content

Commit

Permalink
Retries are attempts - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Jan 14, 2025
1 parent d8c0510 commit bb22554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sentry/Laravel/Features/QueueIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function handleJobProcessingQueueEvent(JobProcessing $event): void
'messaging.message.id' => $jobPayload['uuid'] ?? null,
'messaging.message.envelope.size' => strlen($event->job->getRawBody()),
'messaging.message.body.size' => strlen(json_encode($jobPayload['data'] ?? [])),
'messaging.message.retry.count' => $event->job->attempts(),
'messaging.message.retry.count' => $event->job->attempts() - 1,
'messaging.message.receive.latency' => $jobPublishedAt !== null ? microtime(true) - $jobPublishedAt : null,
];

Expand Down

0 comments on commit bb22554

Please sign in to comment.