feat: Implement telemetry for execution step creation

This commit is contained in:
Faruk AYDIN
2022-05-05 01:29:47 +02:00
parent 466ffcc6bc
commit 00b8f83da5
2 changed files with 19 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
import type { QueryContext } from 'objection';
import Base from './base';
import Execution from './execution';
import Step from './step';
import Telemetry from '../helpers/telemetry';
class ExecutionStep extends Base {
id!: string;
@@ -44,6 +46,11 @@ class ExecutionStep extends Base {
},
},
});
async $afterInsert(queryContext: QueryContext) {
await super.$afterInsert(queryContext);
Telemetry.executionStepCreated(this);
}
}
export default ExecutionStep;