From 790d8fcf09e6a41d1a0df4fdaa3b1f20bf40358e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 9 Feb 2024 12:41:00 +0100 Subject: [PATCH] Trace scriptRunner.execute --- packages/server/src/utilities/scriptRunner.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/server/src/utilities/scriptRunner.ts b/packages/server/src/utilities/scriptRunner.ts index 138b98fdbf..e166563f63 100644 --- a/packages/server/src/utilities/scriptRunner.ts +++ b/packages/server/src/utilities/scriptRunner.ts @@ -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 + }) } }