Skip to content

Commit 52e4011

Browse files
cloudopstayallive
andauthored
fix: Fix not listening to queue events because QueueManager is registered as queue in the container and not by it's class name (#568)
Co-authored-by: Alex Bouma <alex@bouma.me>
1 parent fc510b4 commit 52e4011

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44

5+
- Fix not listening to queue events because `QueueManager` is registered as `queue` in the container and not by it's class name (#568)
56
- Fix status code not populated on transaction if response did not inherit from `Illuminate\Http\Response` like `Illuminate\Http\JsonResponse` (#573)
67

78
## 2.13.0

src/Sentry/Laravel/Tracing/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ private function bindEvents(array $tracingConfig): void
7272

7373
$handler->subscribe();
7474

75-
if ($this->app->bound(QueueManager::class)) {
75+
if ($this->app->bound('queue')) {
7676
$handler->subscribeQueueEvents(
77-
$this->app->make(QueueManager::class)
77+
$this->app->make('queue')
7878
);
7979
}
8080
}

0 commit comments

Comments
 (0)