Trace scriptRunner.execute
This commit is contained in:
parent
34edf19965
commit
790d8fcf09
|
@ -1,3 +1,4 @@
|
||||||
|
import tracer from "dd-trace"
|
||||||
import env from "../environment"
|
import env from "../environment"
|
||||||
import { IsolatedVM } from "../jsRunner/vm"
|
import { IsolatedVM } from "../jsRunner/vm"
|
||||||
|
|
||||||
|
@ -20,8 +21,10 @@ class ScriptRunner {
|
||||||
}
|
}
|
||||||
|
|
||||||
execute() {
|
execute() {
|
||||||
const result = this.vm.execute(this.code)
|
return tracer.trace("scriptRunner.execute", () => {
|
||||||
return result
|
const result = this.vm.execute(this.code)
|
||||||
|
return result
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue