We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e77090 commit 31a38b7Copy full SHA for 31a38b7
src/Sentry/Laravel/Integration.php
@@ -6,6 +6,7 @@
6
use Illuminate\Database\LazyLoadingViolationException;
7
use Illuminate\Foundation\Configuration\Exceptions;
8
use Illuminate\Routing\Route;
9
+use Illuminate\Support\Facades\Context;
10
use Sentry\EventHint;
11
use Sentry\EventId;
12
use Sentry\ExceptionMechanism;
@@ -49,6 +50,14 @@ public function setupOnce(): void
49
50
$event->setTransaction(self::getTransaction());
51
}
52
53
+ if (class_exists(Context::class)) {
54
+ $context = Context::all();
55
+
56
+ if (!empty($context)) {
57
+ $event->setContext('laravel', Context::all());
58
+ }
59
60
61
return $event;
62
});
63
0 commit comments