Skip to content

Commit 32d028b

Browse files
DominicDettaNevay
andauthored
Update src/Instrumentation/Doctrine/src/DoctrineInstrumentation.php
Co-authored-by: Tobias Bachert <[email protected]>
1 parent 046e810 commit 32d028b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Instrumentation/Doctrine/src/DoctrineInstrumentation.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ public static function register(): void
4141
Context::storage()->attach($span->storeInContext($parent));
4242
},
4343
post: static function (\Doctrine\DBAL\Driver $driver, array $params, ?\Doctrine\DBAL\Driver\Connection $connection, ?Throwable $exception) {
44-
$scope = Context::storage()->scope();
45-
if (!$scope) {
46-
return;
47-
}
4844
self::end($exception);
4945
}
5046
);

0 commit comments

Comments
 (0)