From ca64195eb1dc9e9e4864e6e0f78e996882a66559 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 15 Aug 2021 14:15:51 +0545 Subject: [PATCH] fix special chars in path in statsd --- src/Appwrite/Stats/Stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Stats/Stats.php b/src/Appwrite/Stats/Stats.php index 46c263ac38..9625d1c201 100644 --- a/src/Appwrite/Stats/Stats.php +++ b/src/Appwrite/Stats/Stats.php @@ -101,7 +101,7 @@ class Stats $this->statsd->setNamespace($this->namespace); if ($httpRequest >= 1) { - $this->statsd->increment('requests.all' . $tags . ',method=' . \strtolower($httpMethod).',path='.$httpPath); + $this->statsd->increment('requests.all' . $tags . ',method=' . \strtolower($httpMethod) . ',path=' . str_replace(':', '*', $httpPath)); } if ($functionExecution >= 1) {