From 597d92dc5ab892deb64fb119511709f37f56c231 Mon Sep 17 00:00:00 2001 From: "sergei.baikin" Date: Tue, 24 Sep 2024 14:20:48 +0200 Subject: [PATCH] Fix postfix --- src/ExcimerS3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExcimerS3.php b/src/ExcimerS3.php index 8884ad2..55c4136 100644 --- a/src/ExcimerS3.php +++ b/src/ExcimerS3.php @@ -165,7 +165,7 @@ public function timer(string $profilePath = 'app/trace'): void $startTime = microtime(true); $this->s3Client->registerStreamWrapperV2(); $date = date(self::DATE_FORMAT_SHORT); - $stream = fopen("s3://{$this->bucketName}/{$profilePath}/{$date}.json", 'w'); + $stream = fopen("s3://{$this->bucketName}/{$profilePath}/{$date}.csv", 'w'); $timer->setCallback(function () use ($startTime, $stream) { $usage = sprintf("%.2f", memory_get_usage() / 1048576); // MB $interval = (microtime(true) - $startTime);