Улучшено логгирование метрик в statsd

This commit is contained in:
ErickSkrauch
2018-01-02 20:45:04 +03:00
parent e3a99f04fe
commit c6d18f49e7
6 changed files with 16 additions and 7 deletions

View File

@ -47,6 +47,7 @@ class SendPasswordRecoveryEmail implements RetryableJobInterface {
* @throws \common\emails\exceptions\CannotSendEmailException
*/
public function execute($queue) {
Yii::$app->statsd->inc('queue.sendPasswordRecovery.attempt');
$params = new ForgotPasswordParams($this->username, $this->code, $this->link);
$to = EmailHelper::buildTo($this->username, $this->email);
$template = new ForgotPasswordEmail($to, $this->locale, $params);