Skip to content

Commit 3f668e2

Browse files
committed
Merge branch '2.0.x' into 1.0.x
2 parents a24909d + 59d94a7 commit 3f668e2

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/Bridge/BackgroundFinishListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(BackgroundSpanHandler $handler)
1515

1616
public static function getSubscribedEvents()
1717
{
18-
return [KernelEvents::TERMINATE => ['onTerminate', -4096],];
18+
return [KernelEvents::TERMINATE => ['onTerminate', -16384],];
1919
}
2020

2121
public function onTerminate()

src/Bridge/BackgroundStartListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct(BackgroundSpanHandler $handler)
1616

1717
public static function getSubscribedEvents()
1818
{
19-
return [KernelEvents::TERMINATE => ['onTerminate', 4096],];
19+
return [KernelEvents::TERMINATE => ['onTerminate', 16384],];
2020
}
2121

2222
public function onTerminate(PostResponseEvent $event)

src/Bridge/GlobalSpanListener.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function getSubscribedEvents()
3131
{
3232
return [
3333
KernelEvents::REQUEST => ['onRequest', 30],
34-
KernelEvents::TERMINATE => ['onTerminate', -16384],
34+
KernelEvents::TERMINATE => ['onTerminate', 4096],
3535
];
3636
}
3737

@@ -62,7 +62,9 @@ public function onRequest(GetResponseEvent $event)
6262
new SymfonyVersionTag()
6363
]
6464
);
65-
$this->span = $requestSpan->start((int)1000000 * $request->server->get('REQUEST_TIME_FLOAT', microtime(true)));
65+
$this->span = $requestSpan->start(
66+
(int)(1000000 * $request->server->get('REQUEST_TIME_FLOAT', microtime(true)))
67+
);
6668

6769
return $this;
6870
}

src/Bridge/RequestSpanListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function onRequest(GetResponseEvent $event)
6262
]
6363
);
6464
if (HttpKernelInterface::MASTER_REQUEST === $event->getRequestType()) {
65-
$requestSpan->start((int)1000000 * $request->server->get('REQUEST_TIME_FLOAT', microtime(true)));
65+
$requestSpan->start((int)(1000000 * $request->server->get('REQUEST_TIME_FLOAT', microtime(true))));
6666
}
6767

6868
$this->spans->push($requestSpan);

0 commit comments

Comments
 (0)