Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Also clean up _externalSpanCountsByTest in OnActivityStopped to fix p…
…re-existing leak

Agent-Logs-Url: https://github.com/thomhurst/TUnit/sessions/99eadeb1-f26a-4f94-8341-dc05e1ad3fe9

Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
  • Loading branch information
Copilot and thomhurst authored Apr 3, 2026
commit 59a4217612d60655d234408d5184dbd6258653c1
4 changes: 3 additions & 1 deletion TUnit.Engine/Reporters/Html/ActivityCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ private void OnActivityStopped(Activity activity)
// All child spans will have already stopped by this point (children stop before parents).
if (isTUnit && activity.GetTagItem("tunit.test.node_uid") is not null)
{
_testCaseSpanIds.TryRemove(activity.SpanId.ToString(), out _);
var spanId = activity.SpanId.ToString();
_testCaseSpanIds.TryRemove(spanId, out _);
_externalSpanCountsByTest.TryRemove(spanId, out _);
_externalSpanCountsByTrace.TryRemove(traceId, out _);
}
}
Expand Down
Loading