From e3df1cf6fda6ce68e4cfd7735916273b7f34f8db Mon Sep 17 00:00:00 2001 From: Shueh Chou Lu Date: Fri, 21 Apr 2023 09:19:23 +0800 Subject: [PATCH] fix(cp): current user not being sent in traces cherry-pick from https://github.com/Napp/xray-laravel/pull/31 --- src/Collectors/SegmentCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collectors/SegmentCollector.php b/src/Collectors/SegmentCollector.php index 1559a99..d0837f1 100644 --- a/src/Collectors/SegmentCollector.php +++ b/src/Collectors/SegmentCollector.php @@ -135,7 +135,7 @@ public function submitHttpTracer($response): void $submitterClass = config('xray.submitter'); $tracer = $this->tracer(); - if (app()->bound(Auth::class) && Auth::check()) { + if (app()->bound('auth') && Auth::check()) { $tracer->setUser((string) Auth::user()->getAuthIdentifier()); }