Skip to content

Commit

Permalink
fix(cp): current user not being sent in traces
Browse files Browse the repository at this point in the history
cherry-pick from Napp#31
  • Loading branch information
evan361425 committed Apr 21, 2023
1 parent 6b67526 commit e3df1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collectors/SegmentCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit e3df1cf

Please sign in to comment.