add project internal id to the timeseries tats

This commit is contained in:
Damodar Lohani
2022-09-25 02:07:26 +00:00
parent 5e6b8ec506
commit 4969ceadd4
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -149,6 +149,7 @@ App::init()
->setUser($user);
$usage
->setParam('projectInternalId', $project->getInternalId())
->setParam('projectId', $project->getId())
->setParam('project.{scope}.network.requests', 1)
->setParam('httpMethod', $request->getMethod())
+2 -1
View File
@@ -80,7 +80,8 @@ class Stats
public function submit(): void
{
$projectId = $this->params['projectId'] ?? '';
$tags = ",projectId={$projectId},version=" . App::getEnv('_APP_VERSION', 'UNKNOWN');
$projectInternalId = $this->params['projectInternalId'];
$tags = ",projectInternalId={$projectInternalId},projectId={$projectId},version=" . App::getEnv('_APP_VERSION', 'UNKNOWN');
// the global namespace is prepended to every key (optional)
$this->statsd->setNamespace($this->namespace);