Skip to content

Commit 18ddb3a

Browse files
Use isCanary() method
1 parent 2453038 commit 18ddb3a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

extensions/ql-vscode/src/telemetry.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
GLOBAL_ENABLE_TELEMETRY,
1313
LOG_TELEMETRY,
1414
isIntegrationTestMode,
15+
isCanary,
1516
} from "./config";
1617
import * as appInsights from "applicationinsights";
1718
import { 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
);

0 commit comments

Comments
 (0)