Skip to content

Commit

Permalink
fix: send plugin version to telemetry (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 20, 2023
1 parent 89d3ab8 commit 104a2ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/jitPluginInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const hook: Hook<'jit_plugin_not_installed'> = async function (opts) {
global.cliTelemetry?.record({
eventName: 'JIT_INSTALL_STARTED',
type: 'EVENT',
version: opts.config.version,
version: opts.pluginVersion,
plugin: opts.command.pluginName,
command: opts.command.id,
});
Expand All @@ -29,7 +29,7 @@ const hook: Hook<'jit_plugin_not_installed'> = async function (opts) {
global.cliTelemetry?.record({
eventName: 'JIT_INSTALL_SUCCESS',
type: 'EVENT',
version: opts.config.version,
version: opts.pluginVersion,
plugin: opts.command.pluginName,
command: opts.command.id,
});
Expand All @@ -43,7 +43,7 @@ const hook: Hook<'jit_plugin_not_installed'> = async function (opts) {
message: err.message,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
stackTrace: err?.stack?.replace(new RegExp(os.homedir(), 'g'), AppInsights.GDPR_HIDDEN),
version: opts.config.version,
version: opts.pluginVersion,
plugin: opts.command.pluginName,
command: opts.command.id,
});
Expand Down

0 comments on commit 104a2ce

Please sign in to comment.