From 86b3e5a61038f8cd659a830fc89b799ade5f2ab4 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 12 Dec 2024 14:46:58 +0100 Subject: [PATCH] fix(profiling-node): Ensure profileId is added to transaction event --- packages/profiling-node/src/integration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/profiling-node/src/integration.ts b/packages/profiling-node/src/integration.ts index 8aed8eb3a305..c9b9fe12056d 100644 --- a/packages/profiling-node/src/integration.ts +++ b/packages/profiling-node/src/integration.ts @@ -85,7 +85,7 @@ function setupAutomatedSpanProfiling(client: NodeClient): void { // Unref timeout so it doesn't keep the process alive. timeout.unref(); - getCurrentScope().setContext('profile', { profile_id }); + getIsolationScope().setContext('profile', { profile_id }); spanToProfileIdMap.set(span, profile_id); } });