Skip to content

Commit 30fdef2

Browse files
committed
Fixed broken logic in the RequestSpanListener.php
1 parent eb9bdb2 commit 30fdef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridge/RequestSpanListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function getSubscribedEvents(): array
4545

4646
public function onResponse(ResponseEvent $event): void
4747
{
48-
if (false === $this->isMainRequestEvent($event)) {
48+
if ($this->isMainRequestEvent($event)) {
4949
return;
5050
}
5151
if ($this->spans->isEmpty()) {
@@ -56,7 +56,7 @@ public function onResponse(ResponseEvent $event): void
5656

5757
public function onRequest(RequestEvent $event): void
5858
{
59-
if (false === $this->isMainRequestEvent($event)) {
59+
if ($this->isMainRequestEvent($event)) {
6060
return;
6161
}
6262
$request = $event->getRequest();

0 commit comments

Comments
 (0)