Skip to content

Commit 292c518

Browse files
author
anahan
committed
symfony.start span now finishes later (-1023), exactly before request span start
1 parent 064d7d1 commit 292c518

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Bridge/AppStartSpanListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(TracerInterface $tracer)
2222

2323
public static function getSubscribedEvents(): array
2424
{
25-
return [RequestEvent::class => ['onRequest', 25],];
25+
return [RequestEvent::class => ['onRequest', -1023],];
2626
}
2727

2828
public function onRequest(RequestEvent $event)

src/Bridge/RequestSpanListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(\SplStack $stack, NameGeneratorInterface $nameGenera
3737
public static function getSubscribedEvents(): array
3838
{
3939
return [
40-
RequestEvent::class => ['onRequest', -1],
40+
RequestEvent::class => ['onRequest', -1024],
4141
ResponseEvent::class => ['onResponse', -1024],
4242
ExceptionEvent::class => ['onKernelException', 0],
4343
];

0 commit comments

Comments
 (0)