From dd3ae394ce3c380b1d6336d87828b9e9a3743852 Mon Sep 17 00:00:00 2001 From: Dominik Buszowiecki Date: Wed, 15 May 2024 15:15:12 -0400 Subject: [PATCH 1/7] rename resource module to asset module --- .../performance/{resources.mdx => assets.mdx} | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) rename docs/product/performance/{resources.mdx => assets.mdx} (67%) diff --git a/docs/product/performance/resources.mdx b/docs/product/performance/assets.mdx similarity index 67% rename from docs/product/performance/resources.mdx rename to docs/product/performance/assets.mdx index af1475607232d..06f39a5bba482 100644 --- a/docs/product/performance/resources.mdx +++ b/docs/product/performance/assets.mdx @@ -1,20 +1,20 @@ --- -title: Resources +title: Assets sidebar_order: 50 -description: "Learn more about browser resource performance monitoring, which allows you to debug the performance of loading JavaScript and CSS on your frontend." +description: "Learn more about browser asset performance monitoring, which allows you to debug the performance of loading JavaScript and CSS on your frontend." --- -If you have performance monitoring enabled for your frontend, you can see how your browser resources are performing in Sentry. +If you have performance monitoring enabled for your frontend, you can see how your browser assets are performing in Sentry. -Starting with the [**Resources** page](#resources-page), you get a high-level overview of how your resources are doing. From there, you can drill into a specific resource's [**Resource Summary** page](#resource-summary-page) and then investigate sample events from the [Sample List](#sample-list) to better understand the context of its performance in a specific page. +Starting with the [**Assets** page](#assets-page), you get a high-level overview of how your assets are doing. From there, you can drill into a specific asset's [**Asset Summary** page](#asset-summary-page) and then investigate sample events from the [Sample List](#sample-list) to better understand the context of its performance in a specific page.
## Prerequisites and Limitations -The resource pages are only available for frontend JavaScript projects with performance monitoring enabled. Currently only JavaScript, CSS, images, and certain resources that are initiated by CSS (such as fonts), are supported. +The asset pages are only available for frontend JavaScript projects with performance monitoring enabled. Currently only JavaScript, CSS, images, and certain assets that are initiated by CSS (such as fonts), are supported. -For the best experience, we recommend enabling automatic instrumentation via the `BrowserTracing` integration for your frontend project to see resource performance data. This is supported for the following JavaScript platforms: +For the best experience, we recommend enabling automatic instrumentation via the `BrowserTracing` integration for your frontend project to see asset performance data. This is supported for the following JavaScript platforms: - [Vanilla JavaScript](/platforms/javascript/performance/) - [Angular](/platforms/javascript/guides/angular/performance/) @@ -30,11 +30,11 @@ For the best experience, we recommend enabling automatic instrumentation via the ### Span Eligibility -Sentry tries to extract metrics by looking at resource-related spans. +Sentry tries to extract metrics by looking at asset-related spans. -The JavaScript SDK automatically generates `resource` spans on `pageload` and `navigation` transactions using the browser's [Resource Timing API](https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/Resource_timing). +The JavaScript SDK automatically generates `asset` spans on `pageload` and `navigation` transactions using the browser's [Resource Timing API](https://developer.mozilla.org/en-US/docs/Web/API/Performance_API/Resource_timing). -If you are using automatic instrumentation, resource monitoring should work without any configuration. +If you are using automatic instrumentation, asset monitoring should work without any configuration. If you've manually instrumented Sentry, you'll need to make sure that your spans conform to our standards for the best experience: @@ -73,41 +73,41 @@ resources.forEach((entry) => { }); ``` -## Resources Page +## Assets Page -The **Resources** page gives you a quick overview of your application's resource performance for the selected project(s). You can use this page as a starting point to investigate potential problem resources and drill down to better understand how various resources are affecting your app's performance. +The **Assets** page gives you a quick overview of your application's asset performance for the selected project(s). You can use this page as a starting point to investigate potential problem assets and drill down to better understand how various assets are affecting your app's performance. -Open the **Resources** page by clicking "Resources" in the sidebar, under "Performance". Alternatively, the **Performance** page also surfaces the highest impact resources in the "Most Time Consuming Resources" widget. From there, you can click "View All" to open the **Resources** page. +Open the **Assets** page by clicking "Assets" in the sidebar, under "Performance". Alternatively, the **Performance** page also surfaces the highest impact assets in the "Most Time Consuming Assets" widget. From there, you can click "View All" to open the **Assets** page. -At the top of the page, summary graphs for requests per minute (throughput) and average duration provide high-level insight into the performance of your resources. If you see an anomaly or want to investigate a time range further, you can click and drag to select a range directly in a graph to filter data for that time range. +At the top of the page, summary graphs for requests per minute (throughput) and average duration provide high-level insight into the performance of your assets. If you see an anomaly or want to investigate a time range further, you can click and drag to select a range directly in a graph to filter data for that time range. -The resource table below shows a list of grouped resources, along with their type, their volume (requests per min), average duration, the total time your app spent loading that resource (time spent), and [average encoded size](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize) of the resource. +The asset table below shows a list of grouped assets, along with their type, their volume (requests per min), average duration, the total time your app spent loading that asset (time spent), and [average encoded size](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize) of the asset. -By default, the resources table is sorted by most time spent, which serves as a proxy for the relative performance impact of a given resource. A resource's time spent is the sum of all its durations in a given time period or, put another way, the product of its average duration and requests per minute. This means that resources at the top are usually loading really slowly, very frequently, or both. +By default, the assets table is sorted by most time spent, which serves as a proxy for the relative performance impact of a given asset. A asset's time spent is the sum of all its durations in a given time period or, put another way, the product of its average duration and requests per minute. This means that assets at the top are usually loading really slowly, very frequently, or both. -You can click on a column header to change how the table is sorted. Sort by requests per minute to see the most frequently loaded resources or by average duration to see the slowest-loading resources. +You can click on a column header to change how the table is sorted. Sort by requests per minute to see the most frequently loaded assets or by average duration to see the slowest-loading assets. -You can also filter resources by domain, type, page it's found on, and whether it has render blocked. +You can also filter assets by domain, type, page it's found on, and whether it has render blocked. -To view more details, click on a resource from the table to open its **Resource Summary** page. +To view more details, click on a asset from the table to open its **Asset Summary** page.
### What Does a Render Blocking Mean? -A render blocking resource is one which will stop the browser from rendering anything on the screen, until the resource is fully download and processed by the browser. +A render blocking asset is one which will stop the browser from rendering anything on the screen, until the asset is fully download and processed by the browser. An example of this is a `