Skip to content

Commit

Permalink
fix: Fix not listening to queue events because QueueManager is regi…
Browse files Browse the repository at this point in the history
…stered as `queue` in the container and not by it's class name (#568)

Co-authored-by: Alex Bouma <alex@bouma.me>
  • Loading branch information
cloudop and stayallive committed Sep 29, 2022
1 parent fc510b4 commit 52e4011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

## Unreleased

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

## 2.13.0
Expand Down
4 changes: 2 additions & 2 deletions src/Sentry/Laravel/Tracing/ServiceProvider.php
Expand Up @@ -72,9 +72,9 @@ private function bindEvents(array $tracingConfig): void

$handler->subscribe();

if ($this->app->bound(QueueManager::class)) {
if ($this->app->bound('queue')) {
$handler->subscribeQueueEvents(
$this->app->make(QueueManager::class)
$this->app->make('queue')
);
}
}
Expand Down

0 comments on commit 52e4011

Please sign in to comment.