Skip to content

Commit 9449718

Browse files
committed
Add cfn service telemetry for specific methods
1 parent 5e8910e commit 9449718

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/CfnService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export class CfnService {
118118
return response.TemplateBody;
119119
}
120120

121+
@Measure({ name: 'createChangeSet' })
121122
public async createChangeSet(params: {
122123
StackName: string;
123124
ChangeSetName: string;
@@ -273,6 +274,7 @@ export class CfnService {
273274
});
274275
}
275276

277+
@Measure({ name: 'executeChangeSet' })
276278
public async executeChangeSet(params: {
277279
ChangeSetName: string;
278280
StackName?: string;
@@ -281,13 +283,15 @@ export class CfnService {
281283
return await this.withClient((client) => client.send(new ExecuteChangeSetCommand(params)));
282284
}
283285

286+
@Measure({ name: 'deleteChangeSet' })
284287
public async deleteChangeSet(params: {
285288
ChangeSetName: string;
286289
StackName?: string;
287290
}): Promise<DeleteChangeSetCommandOutput> {
288291
return await this.withClient((client) => client.send(new DeleteChangeSetCommand(params)));
289292
}
290293

294+
@Measure({ name: 'deleteStack' })
291295
public async deleteStack(params: { StackName: string }): Promise<DeleteStackCommandOutput> {
292296
return await this.withClient((client) => client.send(new DeleteStackCommand(params)));
293297
}
@@ -357,10 +361,12 @@ export class CfnService {
357361
});
358362
}
359363

364+
@Measure({ name: 'validateTemplate' })
360365
public async validateTemplate(params: ValidateTemplateInput): Promise<ValidateTemplateOutput> {
361366
return await this.withClient((client) => client.send(new ValidateTemplateCommand(params)));
362367
}
363368

369+
@Measure({ name: 'listChangeSets' })
364370
public async listChangeSets(
365371
stackName: string,
366372
nextToken?: string,

0 commit comments

Comments
 (0)