From d5850d59de4224843dd8444571a30a53186ea74a Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 8 Jan 2024 09:52:07 +0000 Subject: [PATCH] Add bool to show when execution tracker gets created. --- packages/server/src/jsRunner.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/jsRunner.ts b/packages/server/src/jsRunner.ts index f041f211fb..6fde3ab82a 100644 --- a/packages/server/src/jsRunner.ts +++ b/packages/server/src/jsRunner.ts @@ -12,10 +12,13 @@ export function init() { const perRequestLimit = env.JS_PER_REQUEST_TIME_LIMIT_MS let track: TrackerFn = f => f() if (perRequestLimit) { - tracer.trace("runJS.setupTracker", {}, span => { + tracer.trace("runJS.setupTracker", {}, span => { const bbCtx = context.getCurrentContext() if (bbCtx) { if (!bbCtx.jsExecutionTracker) { + span?.addTags({ + createdExecutionTracker: true, + }) bbCtx.jsExecutionTracker = timers.ExecutionTimeTracker.withLimit(perRequestLimit) }