@@ -62,7 +62,7 @@ import {
6262import { WaiterConfiguration , WaiterResult } from '@smithy/util-waiter' ;
6363import { AwsClientSettings , DefaultSettings } from '../settings/Settings' ;
6464import { DeploymentMode } from '../stacks/actions/StackActionRequestType' ;
65- import { Count } from '../telemetry/TelemetryDecorator' ;
65+ import { Count , Measure } from '../telemetry/TelemetryDecorator' ;
6666import { AwsClient } from './AwsClient' ;
6767
6868export class CfnService {
@@ -174,6 +174,7 @@ export class CfnService {
174174 } ) ;
175175 }
176176
177+ @Count ( { name : 'detectStackDrift' } )
177178 public async detectStackDrift ( params : {
178179 StackName : string ;
179180 LogicalResourceIds ?: string [ ] ;
@@ -256,6 +257,7 @@ export class CfnService {
256257 return await this . withClient ( ( client ) => client . send ( new ListStackResourcesCommand ( params ) ) ) ;
257258 }
258259
260+ @Count ( { name : 'describeStackResourceDrifts' } )
259261 public async describeStackResourceDrifts ( params : {
260262 StackName : string ;
261263 StackResourceDriftStatusFilters ?: StackResourceDriftStatus [ ] ;
@@ -337,6 +339,7 @@ export class CfnService {
337339 return await this . withClient ( ( client ) => client . send ( new DeleteStackCommand ( params ) ) ) ;
338340 }
339341
342+ @Measure ( { name : 'waitUntilChangeSetCreateComplete' } )
340343 public async waitUntilChangeSetCreateComplete ( params : DescribeChangeSetCommandInput ) : Promise < WaiterResult > {
341344 return await this . withClient ( async ( client ) => {
342345 const settings = this . awsClientSettings ;
@@ -350,6 +353,7 @@ export class CfnService {
350353 } ) ;
351354 }
352355
356+ @Measure ( { name : 'waitUntilStackCreateComplete' } )
353357 public async waitUntilStackCreateComplete ( params : DescribeStacksCommandInput ) : Promise < WaiterResult > {
354358 return await this . withClient ( async ( client ) => {
355359 const settings = this . awsClientSettings ;
@@ -363,6 +367,7 @@ export class CfnService {
363367 } ) ;
364368 }
365369
370+ @Measure ( { name : 'waitUntilStackUpdateComplete' } )
366371 public async waitUntilStackUpdateComplete ( params : DescribeStacksCommandInput ) : Promise < WaiterResult > {
367372 return await this . withClient ( async ( client ) => {
368373 const settings = this . awsClientSettings ;
@@ -376,6 +381,7 @@ export class CfnService {
376381 } ) ;
377382 }
378383
384+ @Measure ( { name : 'waitUntilStackImportComplete' } )
379385 public async waitUntilStackImportComplete ( params : DescribeStacksCommandInput ) : Promise < WaiterResult > {
380386 return await this . withClient ( async ( client ) => {
381387 const settings = this . awsClientSettings ;
@@ -389,6 +395,7 @@ export class CfnService {
389395 } ) ;
390396 }
391397
398+ @Measure ( { name : 'waitUntilStackDeleteComplete' } )
392399 public async waitUntilStackDeleteComplete ( params : DescribeStacksCommandInput ) : Promise < WaiterResult > {
393400 return await this . withClient ( async ( client ) => {
394401 const settings = this . awsClientSettings ;
0 commit comments