Skip to content

Commit f35272d

Browse files
authored
Wire up createCredentials metric (#2079)
1 parent 3003991 commit f35272d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/core/credentials/CredentialWriter.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ class CreateOrUpdateCredentialProfilesAction @TestOnly constructor(
4242
// if both config and credential files do not exist, create a new config file
4343
if (!configFile.exists() && !credentialsFile.exists()) {
4444
if (confirm(project, configFile)) {
45-
writer.createFile(configFile)
45+
try {
46+
writer.createFile(configFile)
47+
} finally {
48+
AwsTelemetry.createCredentials(project)
49+
}
4650
} else {
4751
return
4852
}

0 commit comments

Comments
 (0)