From 21ac8c11041859345650b3e8ada31b483ef81ee9 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 10 Jun 2021 13:12:45 +0200 Subject: [PATCH] fix(usage): undefined function id --- app/workers/usage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/workers/usage.php b/app/workers/usage.php index 0e3e6c2eb..e858669d6 100644 --- a/app/workers/usage.php +++ b/app/workers/usage.php @@ -38,7 +38,7 @@ class UsageV1 extends Worker $httpMethod = $this->args['httpMethod'] ?? ''; $httpRequest = $this->args['httpRequest'] ?? 0; - $functionId = $this->args['functionId']; + $functionId = $this->args['functionId'] ?? ''; $functionExecution = $this->args['functionExecution'] ?? 0; $functionExecutionTime = $this->args['functionExecutionTime'] ?? 0; $functionStatus = $this->args['functionStatus'] ?? ''; @@ -65,7 +65,7 @@ class UsageV1 extends Worker } if($realtimeMessages >= 1) { - $statsd->count('realtime.message'.$tags, $realtimeMessages); + $statsd->count('realtime.messages'.$tags, $realtimeMessages); } $statsd->count('network.inbound'.$tags, $networkRequestSize);