Skip to content

Commit

Permalink
fix(profiling-node): Ensure profileId is added to transaction event (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
Lms24 authored Dec 12, 2024
1 parent 027518d commit 5fe6345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/profiling-node/src/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 5fe6345

Please sign in to comment.