Skip to content

Commit 623a055

Browse files
authored
feat(file-io): Update issue details with the docs link (#43557)
- This updates the Resources and Whatever section with a link to the file io docs
1 parent 9d5ef10 commit 623a055

File tree

1 file changed

+7
-2
lines changed
  • static/app/components/events/interfaces/performance

1 file changed

+7
-2
lines changed

static/app/components/events/interfaces/performance/utils.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const RESOURCES_DESCRIPTIONS: Record<IssueType, string> = {
2727
'N+1 API Calls are repeated concurrent calls to fetch a resource. These spans will always begin at the same time and may potentially be combined to fetch everything at once to reduce server load. Alternatively, you may be able to lazily load the resources. To learn more about how and when to fix N+1 API Calls, check out these resources:'
2828
),
2929
[IssueType.PERFORMANCE_FILE_IO_MAIN_THREAD]: t(
30-
'File IO operations on your main thread may cause app hangs.'
30+
'File IO operations on your main thread may lead to app hangs.'
3131
),
3232
[IssueType.PERFORMANCE_SLOW_DB_QUERY]: t(
3333
'Slow DB Queries are SELECT query spans that take longer than 1s. A quick method to understand why this may be the case is running an EXPLAIN command on the query itself. To learn more about how to fix slow DB queries, check out these resources:'
@@ -63,7 +63,12 @@ const DEFAULT_RESOURCE_LINK: Record<IssueType, ResourceLink[]> = {
6363
},
6464
],
6565
[IssueType.PERFORMANCE_UNCOMPRESSED_ASSET]: [],
66-
[IssueType.PERFORMANCE_FILE_IO_MAIN_THREAD]: [],
66+
[IssueType.PERFORMANCE_FILE_IO_MAIN_THREAD]: [
67+
{
68+
text: t('Sentry Docs: File IO on the Main Thread'),
69+
link: 'https://docs.sentry.io/product/issues/issue-details/performance-issues/main-thread-io/',
70+
},
71+
],
6772
[IssueType.PERFORMANCE_SLOW_DB_QUERY]: [],
6873
[IssueType.PERFORMANCE_RENDER_BLOCKING_ASSET]: [
6974
{

0 commit comments

Comments
 (0)