Skip to content

Commit 250ca15

Browse files
authored
Merge pull request #11 from andrew-demb/fix-fetch-current-span
🐛 Fix fetch span from stack
2 parents 37a66ee + bad973e commit 250ca15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridge/RequestSpanListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function onKernelException(ExceptionEvent $event): void
8282

8383
$exception = $event->getThrowable();
8484

85-
$this->spans->current()
85+
$this->spans->top()
8686
->addTag(new ErrorTag())
8787
->addLog(new ErrorLog($exception->getMessage(), $exception->getTraceAsString()))
8888
;

0 commit comments

Comments
 (0)