Skip to content

Commit c73437f

Browse files
authored
ref(browser): Improve profiling debug statement (#18507)
Small log improvement as the log message was not quite clear. Before, it read like it's related to the whole session, but this log is about each span. Closes #18508 (added automatically)
1 parent a8490c9 commit c73437f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/browser/src/profiling/UIProfiler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ export class UIProfiler implements ContinuousProfiler<Client> {
199199
private _setupTraceLifecycleListeners(client: Client): void {
200200
client.on('spanStart', span => {
201201
if (!this._sessionSampled) {
202-
DEBUG_BUILD && debug.log('[Profiling] Session not sampled because of negative sampling decision.');
202+
DEBUG_BUILD &&
203+
debug.log('[Profiling] Span not profiled because of negative sampling decision for user session.');
203204
return;
204205
}
205206
if (span !== getRootSpan(span)) {

0 commit comments

Comments
 (0)