Skip to content

Commit e67d77e

Browse files
szegediBridgeAR
authored andcommitted
Eagerly delete elements from the ctx WeakMap (#6267)
1 parent 32e39d4 commit e67d77e

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)