Trace should use monotonic time when available in PHP #755
Labels
api: cloudtrace
Issues related to the Cloud Trace API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Right now, it calls microtime(), which is not guaranteed to be monotonic. This could result in bogus measurements because of NTP-introduced clock skew etc.
https://github.com/GoogleCloudPlatform/google-cloud-php/blob/3f9def8696d50201d1f79a1d68a63f908cf113b3/src/Trace/Tracer/ContextTracer.php#L88
One PR that would implement this for PHP is here: php/php-src#2368
The text was updated successfully, but these errors were encountered: