Skip to content

Commit 69d014b

Browse files
committed
fix: Disable Sentry HubAdapter from singleton aspect handling.
1 parent 127af38 commit 69d014b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sentry/src/Aspect/SingletonAspect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SingletonAspect extends AbstractAspect
2020
{
2121
public array $classes = [
2222
// Singleton Classes
23-
\Sentry\State\HubAdapter::class . '::getInstance',
23+
// \Sentry\State\HubAdapter::class . '::getInstance',
2424
\Sentry\Logs\Logs::class . '::getInstance',
2525
\Sentry\Metrics\TraceMetrics::class . '::getInstance',
2626
// !!! Don't enable this for now, it may cause some unexpected issues !!!
@@ -47,7 +47,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)
4747

4848
return match ($className) {
4949
// Singleton Classes
50-
\Sentry\State\HubAdapter::class,
50+
// \Sentry\State\HubAdapter::class,
5151
\Sentry\Logs\Logs::class => Context::getOrSet($key, function () use ($className) {
5252
return Closure::bind(fn () => new $className(), null, $className)();
5353
}),

0 commit comments

Comments
 (0)