Trace scriptRunner.execute

This commit is contained in:
Adria Navarro 2024-02-09 12:41:00 +01:00
parent 34edf19965
commit 790d8fcf09
1 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
import tracer from "dd-trace"
import env from "../environment"
import { IsolatedVM } from "../jsRunner/vm"
@ -20,8 +21,10 @@ class ScriptRunner {
}
execute() {
const result = this.vm.execute(this.code)
return result
return tracer.trace("scriptRunner.execute", () => {
const result = this.vm.execute(this.code)
return result
})
}
}