Skip to content

Commit c8b4511

Browse files
authored
Add metric for async part of the workflow (#367)
1 parent bad723b commit c8b4511

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/stacks/actions/ChangeSetDeletionWorkflow.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export class ChangeSetDeletionWorkflow
9797
};
9898
}
9999

100+
@Measure({ name: 'stackDeletionAsync' })
100101
protected async runStackDeletionAsync(params: CreateDeploymentParams): Promise<void> {
101102
const workflowId = params.id;
102103

@@ -128,6 +129,7 @@ export class ChangeSetDeletionWorkflow
128129
}
129130
}
130131

132+
@Measure({ name: 'changeSetDeletionAsync' })
131133
protected runChangeSetDeletionAsync(params: CreateDeploymentParams): void {
132134
const workflowId = params.id;
133135

src/stacks/actions/DeploymentWorkflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export class DeploymentWorkflow implements StackActionWorkflow<CreateDeploymentP
113113
};
114114
}
115115

116+
@Measure({ name: 'deploymentAsync' })
116117
protected async runDeploymentAsync(params: CreateDeploymentParams, changeSetType: ChangeSetType): Promise<void> {
117118
const workflowId = params.id;
118119
const stackName = params.stackName;

src/stacks/actions/ValidationWorkflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class ValidationWorkflow implements StackActionWorkflow<CreateValidationP
144144
};
145145
}
146146

147+
@Measure({ name: 'validationAsync' })
147148
protected async runValidationAsync(params: CreateValidationParams, changeSetName: string): Promise<void> {
148149
const uri = params.uri;
149150
const workflowId = params.id;

0 commit comments

Comments
 (0)