Skip to content

Commit

Permalink
feat: remove actions/commands as shortcut methods (smoya#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr authored Nov 6, 2023
2 parents 77ad552 + fcfe356 commit a54d145
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ export class Recorder {
this.record(new Metric(name, MetricType.Gauge, value, metadata));
}

async recordValidateActionExecution(metadata: MetricMetadata = {}) {
this.recordActionExecution('validate', metadata);
}

async recordGenerateActionExecution(metadata: MetricMetadata = {}) {
this.recordActionExecution('generate', metadata);
}

async recordActionExecution(actionName: string, metadata: MetricMetadata = {}) {
metadata['action'] = actionName;
this.record(new Metric('action.executed', MetricType.Counter, 1, metadata));
Expand Down

0 comments on commit a54d145

Please sign in to comment.