Skip to content

Commit edb6b04

Browse files
Vandita2020Vandita Patidar
andauthored
fix(lambda): making metric change for serverless land (aws#6766)
## Problem Earlier we recorded the pattern name based on the asset name, which resulted in multiple records for the same template. This occurred because the asset name included the runtime name as well. ## Solution Modified the metric recording process to capture the pattern name, which remains consistent across runtimes. This approach ensures there is a single entry for each pattern, regardless of the runtime utilized. The runtime information is recorded separately. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: Vandita Patidar <[email protected]>
1 parent cec7120 commit edb6b04

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/awsService/appBuilder/serverlessLand

1 file changed

+1
-1
lines changed

packages/core/src/awsService/appBuilder/serverlessLand/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function createNewServerlessLandProject(extContext: ExtContext): Pr
5757
true
5858
)
5959
telemetry.record({
60-
templateName: assetName,
60+
templateName: config.pattern,
6161
runtimeString: config.runtime,
6262
iac: config.iac,
6363
})

0 commit comments

Comments
 (0)