Skip to content

Commit 65456fb

Browse files
committed
Fixed incorrect header name
1 parent 3fd0cfe commit 65456fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Bridge/MainSpanNameListener.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ public static function getSubscribedEvents(): array
2525
];
2626
}
2727

28-
public function onRequest(Request $request): MainSpanNameListener
28+
public function onRequest(KernelEvent $event): MainSpanNameListener
2929
{
30+
if (false === $this->isMainRequestEvent($event)) {
31+
return $this;
32+
}
3033
$this->handler->name();
3134

3235
return $this;

0 commit comments

Comments
 (0)