Skip to content

Commit ea98579

Browse files
committed
fix AI review comments
1 parent 79dae58 commit ea98579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/browser/src/profiling/UIProfiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class UIProfiler implements ContinuousProfiler<Client> {
133133
return;
134134
}
135135

136-
this._activeRootSpanIds.add(spanId);
136+
this._registerTraceRootSpan(spanId);
137137

138138
const rootSpanCount = this._activeRootSpanIds.size;
139139

@@ -190,7 +190,7 @@ export class UIProfiler implements ContinuousProfiler<Client> {
190190
});
191191

192192
// Manual: Clear profiling context so spans outside start()/stop() aren't marked as profiled
193-
// Trace: Profile context is kept as long as there is an active root span
193+
// Trace: Profile context is kept for the whole session duration
194194
if (this._lifecycleMode === 'manual') {
195195
getGlobalScope().setContext('profile', {});
196196
}

0 commit comments

Comments
 (0)