Skip to content

Commit 31ece9f

Browse files
committed
save secret telemetry
1 parent 9d77db8 commit 31ece9f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

frontend/app/view/waveconfig/waveconfig-model.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,16 @@ export class WaveConfigViewModel implements ViewModel {
468468

469469
try {
470470
await RpcApi.SetSecretsCommand(TabRpcClient, { [selectedSecret]: secretValue });
471+
RpcApi.RecordTEventCommand(
472+
TabRpcClient,
473+
{
474+
event: "action:other",
475+
props: {
476+
"action:type": "waveconfig:savesecret",
477+
},
478+
},
479+
{ noresponse: true }
480+
);
471481
this.closeSecretView();
472482
} catch (error) {
473483
globalStore.set(this.errorMessageAtom, `Failed to save secret: ${error.message}`);
@@ -539,6 +549,16 @@ export class WaveConfigViewModel implements ViewModel {
539549

540550
try {
541551
await RpcApi.SetSecretsCommand(TabRpcClient, { [name]: value });
552+
RpcApi.RecordTEventCommand(
553+
TabRpcClient,
554+
{
555+
event: "action:other",
556+
props: {
557+
"action:type": "waveconfig:savesecret",
558+
},
559+
},
560+
{ noresponse: true }
561+
);
542562
globalStore.set(this.isAddingNewAtom, false);
543563
globalStore.set(this.newSecretNameAtom, "");
544564
globalStore.set(this.newSecretValueAtom, "");

0 commit comments

Comments
 (0)