From b725b2e481d70a0e785db25cbdd0740338e4fd4f Mon Sep 17 00:00:00 2001 From: Camill Hauser Date: Thu, 7 Mar 2024 09:59:37 +0100 Subject: [PATCH 1/3] [BUGFIX] removed duration from string + reduced desc length --- Classes/Utility/TimingUtility.php | 2 +- ext_conf_template.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Utility/TimingUtility.php b/Classes/Utility/TimingUtility.php index 4880fe6..b792659 100644 --- a/Classes/Utility/TimingUtility.php +++ b/Classes/Utility/TimingUtility.php @@ -151,7 +151,7 @@ public function shutdown(ScriptResult $result): ?ResponseInterface foreach ($stopWatches as $index => $time) { $duration = $time->getDuration(); if ($duration >= $maxNumberOfTimings) { - $timings[] = $this->timingString($index, trim($time->key . ' ' . $time->info . ' ' . $duration), $duration); + $timings[] = $this->timingString($index, trim($time->key . ' ' . $time->info . ' '), $duration); } } diff --git a/ext_conf_template.txt b/ext_conf_template.txt index 0337d59..d245645 100644 --- a/ext_conf_template.txt +++ b/ext_conf_template.txt @@ -11,4 +11,4 @@ sentry_cli_sample_rate = number_of_timings = 30 # cat=sentry; type=integer; label=Length of description (reduce to make header output smaller. Try out when you get regularly 502 responses). -length_of_description = 100 +length_of_description = 60 From eec9fa3404cb14f84374064da2a301af9067db6c Mon Sep 17 00:00:00 2001 From: Camill Hauser Date: Thu, 7 Mar 2024 10:13:37 +0100 Subject: [PATCH 2/3] cleanup space --- Classes/Utility/TimingUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Utility/TimingUtility.php b/Classes/Utility/TimingUtility.php index b792659..6dd791e 100644 --- a/Classes/Utility/TimingUtility.php +++ b/Classes/Utility/TimingUtility.php @@ -151,7 +151,7 @@ public function shutdown(ScriptResult $result): ?ResponseInterface foreach ($stopWatches as $index => $time) { $duration = $time->getDuration(); if ($duration >= $maxNumberOfTimings) { - $timings[] = $this->timingString($index, trim($time->key . ' ' . $time->info . ' '), $duration); + $timings[] = $this->timingString($index, trim($time->key . ' ' . $time->info), $duration); } } From 82898f33780dd5f340153814f68e33a70ec65aa9 Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Thu, 7 Mar 2024 10:19:34 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=E2=9C=A8=20lower=20number=20of=20timings?= =?UTF-8?q?=20to=2020?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext_conf_template.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_conf_template.txt b/ext_conf_template.txt index d245645..08811a8 100644 --- a/ext_conf_template.txt +++ b/ext_conf_template.txt @@ -8,7 +8,7 @@ sentry_sample_rate = sentry_cli_sample_rate = # cat=sentry; type=integer; label=Number of timings (reduce to make header output smaller. Try out when you get regularly 502 responses). -number_of_timings = 30 +number_of_timings = 20 # cat=sentry; type=integer; label=Length of description (reduce to make header output smaller. Try out when you get regularly 502 responses). length_of_description = 60