feat: Toggle telemetry with telemetry enabled env variable

This commit is contained in:
Faruk AYDIN
2022-09-21 09:08:51 +02:00
committed by Ali BARIN
parent 6a8c642b72
commit 4d7ee3dcca
2 changed files with 6 additions and 0 deletions
@@ -26,6 +26,10 @@ class Telemetry {
}
track(name: string, properties: apiObject) {
if (!appConfig.telemetryEnabled) {
return;
}
properties = {
...properties,
appEnv: appConfig.appEnv,