From 82b49a9e511d2439912b59ac70c317df88a424f1 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 28 Aug 2020 21:04:29 +0200 Subject: [PATCH] Add telemetry to get insight in update preferences. --- app/Repositories/Rule/RuleRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Repositories/Rule/RuleRepository.php b/app/Repositories/Rule/RuleRepository.php index 2506b2519b..40647899f7 100644 --- a/app/Repositories/Rule/RuleRepository.php +++ b/app/Repositories/Rule/RuleRepository.php @@ -413,6 +413,7 @@ class RuleRepository implements RuleRepositoryInterface 'stop_processing' => $stopProcessing, 'order' => $order, ]; + app('telemetry')->feature('rules.actions.uses_action', $action['type']); $this->storeAction($rule, $actionValues); } @@ -449,6 +450,7 @@ class RuleRepository implements RuleRepositoryInterface 'stop_processing' => $stopProcessing, 'order' => $order, ]; + app('telemetry')->feature('rules.triggers.uses_trigger', $trigger['type']); $this->storeTrigger($rule, $triggerValues); ++$order;