From 38cf7a7ca076574e875dccb30f502ca8ebecd1b6 Mon Sep 17 00:00:00 2001 From: Srinath Reddy Dudi Date: Tue, 22 Sep 2026 01:28:27 -0400 Subject: [PATCH 1/2] fixed bugs in query and job recorders --- src/Recorders/QueryRecorder.php | 4 ++++ src/Recorders/QueuedJobRecorder.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Recorders/QueryRecorder.php b/src/Recorders/QueryRecorder.php index 346b630..424273a 100644 --- a/src/Recorders/QueryRecorder.php +++ b/src/Recorders/QueryRecorder.php @@ -59,6 +59,10 @@ protected function formatBindings($event) */ public function replaceBindings($event) { + if (method_exists($event, 'toRawSql')) { + return $event->toRawSql(); + } + $sql = $event->sql; foreach ($this->formatBindings($event) as $key => $binding) { diff --git a/src/Recorders/QueuedJobRecorder.php b/src/Recorders/QueuedJobRecorder.php index 8cc4b94..6cb65ca 100644 --- a/src/Recorders/QueuedJobRecorder.php +++ b/src/Recorders/QueuedJobRecorder.php @@ -108,11 +108,12 @@ public function processing(JobProcessing $event) if ($event->connectionName === 'sync') { $job['queued_at'] = now()->toDateTimeString(); $job['delay'] = 0; - $job['context'] = $this->laritor->getContext(); } else { $this->laritor->setContext('JOB'); } + $job['context'] = $this->laritor->getContext(); + $this->laritor->pushEvent(static::$eventType, $job); } else { $this->laritor->setContext('JOB'); From 5fa69398f981db06d54f88b31320909058695c0d Mon Sep 17 00:00:00 2001 From: Srinath Reddy Dudi Date: Tue, 22 Sep 2026 01:29:09 -0400 Subject: [PATCH 2/2] bump version --- src/Laritor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Laritor.php b/src/Laritor.php index 3f057b4..32314bb 100644 --- a/src/Laritor.php +++ b/src/Laritor.php @@ -23,7 +23,7 @@ class Laritor { - public const VERSION = '4.0.1'; + public const VERSION = '4.0.2'; /** * @var array