Skip to content

Commit 092a702

Browse files
authored
Eagerly delete elements from the ctx WeakMap (#6267)
1 parent d4b6895 commit 092a702

File tree

1 file changed

+1
-0
lines changed
  • packages/dd-trace/src/profiling/profilers/event_plugins

1 file changed

+1
-0
lines changed

packages/dd-trace/src/profiling/profilers/event_plugins/event.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class EventPlugin extends TracingPlugin {
3333
const data = this.contextData.get(ctx)
3434

3535
if (!data) return
36+
this.contextData.delete(ctx)
3637

3738
const { startEvent, startTime, error } = data
3839
if (error || this.ignoreEvent(startEvent)) {

0 commit comments

Comments
 (0)