File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 9
9
use Jaeger \Tracer \TracerInterface ;
10
10
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
11
11
use Symfony \Component \HttpKernel \Event \RequestEvent ;
12
- use Symfony \Component \HttpKernel \HttpKernelInterface ;
13
12
14
13
class AppStartSpanListener implements EventSubscriberInterface
15
14
{
@@ -28,7 +27,7 @@ public static function getSubscribedEvents(): array
28
27
public function onRequest (RequestEvent $ event )
29
28
{
30
29
$ request = $ event ->getRequest ();
31
- if (HttpKernelInterface:: MASTER_REQUEST !== $ event ->getRequestType ()) {
30
+ if (false === $ event ->isMasterRequest ()) {
32
31
return $ this ;
33
32
}
34
33
$ this ->tracer
Original file line number Diff line number Diff line change 6
6
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
7
7
use Symfony \Component \HttpKernel \Event \RequestEvent ;
8
8
use Symfony \Component \HttpKernel \Event \TerminateEvent ;
9
- use Symfony \Component \HttpKernel \HttpKernelInterface ;
10
9
11
10
class GlobalSpanListener implements EventSubscriberInterface
12
11
{
@@ -34,7 +33,7 @@ public function onTerminate()
34
33
35
34
public function onRequest (RequestEvent $ event )
36
35
{
37
- if (HttpKernelInterface:: MASTER_REQUEST !== $ event ->getRequestType ()) {
36
+ if (false === $ event ->isMasterRequest ()) {
38
37
return $ this ;
39
38
}
40
39
$ this ->handler ->start ($ event ->getRequest ());
Original file line number Diff line number Diff line change 17
17
use Symfony \Component \HttpKernel \Event \ExceptionEvent ;
18
18
use Symfony \Component \HttpKernel \Event \RequestEvent ;
19
19
use Symfony \Component \HttpKernel \Event \ResponseEvent ;
20
- use Symfony \Component \HttpKernel \HttpKernelInterface ;
21
20
22
21
class RequestSpanListener implements EventSubscriberInterface
23
22
{
@@ -45,7 +44,7 @@ public static function getSubscribedEvents(): array
45
44
46
45
public function onResponse (ResponseEvent $ event ): void
47
46
{
48
- if (HttpKernelInterface:: MASTER_REQUEST === $ event ->getRequestType ()) {
47
+ if ($ event ->isMasterRequest ()) {
49
48
return ;
50
49
}
51
50
if ($ this ->spans ->isEmpty ()) {
@@ -56,7 +55,7 @@ public function onResponse(ResponseEvent $event): void
56
55
57
56
public function onRequest (RequestEvent $ event ): void
58
57
{
59
- if (HttpKernelInterface:: MASTER_REQUEST === $ event ->getRequestType ()) {
58
+ if ($ event ->isMasterRequest ()) {
60
59
return ;
61
60
}
62
61
$ request = $ event ->getRequest ();
You can’t perform that action at this time.
0 commit comments