File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 GLOBAL_ENABLE_TELEMETRY ,
1313 LOG_TELEMETRY ,
1414 isIntegrationTestMode ,
15+ isCanary ,
1516} from "./config" ;
1617import * as appInsights from "applicationinsights" ;
1718import { extLogger } from "./common" ;
@@ -155,14 +156,12 @@ export class TelemetryListener extends ConfigListener {
155156 ? CommandCompletion . Cancelled
156157 : CommandCompletion . Failed ;
157158
158- const isCanary = ( ! ! CANARY_FEATURES . getValue < boolean > ( ) ) . toString ( ) ;
159-
160159 this . reporter . sendTelemetryEvent (
161160 "command-usage" ,
162161 {
163162 name,
164163 status,
165- isCanary,
164+ isCanary : isCanary ( ) ,
166165 } ,
167166 { executionTime } ,
168167 ) ;
@@ -173,13 +172,11 @@ export class TelemetryListener extends ConfigListener {
173172 return ;
174173 }
175174
176- const isCanary = ( ! ! CANARY_FEATURES . getValue < boolean > ( ) ) . toString ( ) ;
177-
178175 this . reporter . sendTelemetryEvent (
179176 "ui-interaction" ,
180177 {
181178 name,
182- isCanary,
179+ isCanary : isCanary ( ) ,
183180 } ,
184181 { } ,
185182 ) ;
You can’t perform that action at this time.
0 commit comments