1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

fix special chars in path in statsd

This commit is contained in:
Damodar Lohani 2021-08-15 14:15:51 +05:45
parent 26c4fe7009
commit ca64195eb1

View file

@ -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) {