Skip to content
Snippets Groups Projects
Verified Commit e671a925 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3352459 follow-up by catch: Add OpenTelemetry Application Performance...

Issue #3352459 follow-up by catch: Add OpenTelemetry Application Performance Monitoring to core performance tests
parent cb55a3ae
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,7 @@ private function openTelemetryTracing(array $messages, string $service_name): vo ...@@ -213,7 +213,7 @@ private function openTelemetryTracing(array $messages, string $service_name): vo
// Since chrome timestamps are since OS start, we take the first network // Since chrome timestamps are since OS start, we take the first network
// request as '0' and calculate offsets against that. // request as '0' and calculate offsets against that.
if ($timestamp === NULL && $message['method'] === 'Network.requestWillBeSent') { if ($timestamp === NULL && $message['method'] === 'Network.requestWillBeSent') {
$url = $message['url']; $url = $message['params']['request']['url'];
$timestamp = (int) ($message['params']['wallTime'] * $nanoseconds_per_second); $timestamp = (int) ($message['params']['wallTime'] * $nanoseconds_per_second);
// Network timestamps are formatted as a second float with three point // Network timestamps are formatted as a second float with three point
// precision. Record this so it can be compared against other // precision. Record this so it can be compared against other
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment