From 3ee0dc2f497c19fd8e632ea6e94f7a80b63b0bc8 Mon Sep 17 00:00:00 2001 From: Jerico Aragon Date: Tue, 24 Jan 2023 14:36:12 +0800 Subject: [PATCH] Update sampling interval to 5ms Before we introduced excimer support, we were sampling at 5ms. PR to support excimer changed it to 50ms (see: https://github.com/humanmade/aws-xray/commit/8f8dcfed5b3cec2eef2ad2c157e34272448a193f#diff-a0f318343a79085d556c9f6050c1261041075f5129f00e908fce122d89e02febL24) This PR reverts back sampling interval to 5ms. https://github.com/humanmade/aws-xray/issues/86 --- inc/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/namespace.php b/inc/namespace.php index 543220f..049214a 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -11,7 +11,7 @@ use GuzzleHttp\TransferStats; use WP_Object_Cache; -const SAMPLE_INTERVAL = 0.05; // seconds. +const SAMPLE_INTERVAL = 0.005; // seconds. /** * Set initial values and register handlers