Skip to content

Commit 5fe6345

Browse files
authored
fix(profiling-node): Ensure profileId is added to transaction event (#14681)
Put the profile id onto the isolation scope instead, which at least in server applications (like express) should correspond to the lifetime of a request.
1 parent 027518d commit 5fe6345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/profiling-node/src/integration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function setupAutomatedSpanProfiling(client: NodeClient): void {
8585
// Unref timeout so it doesn't keep the process alive.
8686
timeout.unref();
8787

88-
getCurrentScope().setContext('profile', { profile_id });
88+
getIsolationScope().setContext('profile', { profile_id });
8989
spanToProfileIdMap.set(span, profile_id);
9090
}
9191
});

0 commit comments

Comments
 (0)