args['projectId']; $method = $this->args['method']; $request = $this->args['request']; $response = $this->args['response']; $storage = $this->args['storage']; $statsd = $register->get('statsd', true); $tags = ",project={$projectId},version=".VERSION.''; // the global namespace is prepended to every key (optional) $statsd->setNamespace('appwrite.usage'); $statsd->increment('requests.all'.$tags.',method='.strtolower($method)); $statsd->count('network.all'.$tags, $request + $response); $statsd->count('network.inbound'.$tags, $request); $statsd->count('network.outbound'.$tags, $response); $statsd->count('storage.all'.$tags, $storage); } public function tearDown() { // ... Remove environment for this job } }