Skip to content

Commit dbbe0bd

Browse files
authored
ref(tracing): Update long task description (#5601)
Update the `ui.long-task` span description to explain what is happening while the span is occuring. https://developer.mozilla.org/en-US/docs/Web/API/Long_Tasks_API
1 parent 5172a7d commit dbbe0bd

File tree

2 files changed

+2
-2
lines changed
  • packages
    • integration-tests/suites/tracing/browsertracing/long-tasks-enabled
    • tracing/src/browser/metrics

2 files changed

+2
-2
lines changed

packages/integration-tests/suites/tracing/browsertracing/long-tasks-enabled/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sentryTest('should capture long task.', async ({ browserName, getLocalTestPath,
2323
expect(firstUISpan).toEqual(
2424
expect.objectContaining({
2525
op: 'ui.long-task',
26-
description: 'Long Task',
26+
description: 'Main UI thread blocked',
2727
parent_span_id: eventData.contexts?.trace.span_id,
2828
}),
2929
);

packages/tracing/src/browser/metrics/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function startTrackingLongTasks(): void {
5252
const startTime = msToSec((browserPerformanceTimeOrigin as number) + entry.startTime);
5353
const duration = msToSec(entry.duration);
5454
transaction.startChild({
55-
description: 'Long Task',
55+
description: 'Main UI thread blocked',
5656
op: 'ui.long-task',
5757
startTimestamp: startTime,
5858
endTimestamp: startTime + duration,

0 commit comments

Comments
 (0)