1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

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

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())

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);