Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[experiment] learning about source maps #2525

Closed
wants to merge 4 commits into from
Closed

Conversation

zchsh
Copy link
Contributor

@zchsh zchsh commented Jul 26, 2024

πŸ”— Relevant links

πŸ—’οΈ What

Messing around with source maps because I don't feel familiar enough with them.

πŸ“Έ Screenshots

CleanShot 2024-07-26 at 15 28 09@2x

πŸ§ͺ Testing

  • Open DataDog Error Tracking
  • Visit the preview, and wait a few seconds until an error happens
    • You should see this error in the console, Error: This is a test error thrown after 3 seconds
  • The error should show up in DataDog, with source maps
    • You should see source code for the footer component, where the error's coming from
    • There should be a link back to the footer source code

πŸ’­ Anything else?

This PR is based on work in #2523.

Copy link

vercel bot commented Jul 26, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
dev-portal βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Aug 16, 2024 7:37pm

Copy link

github-actions bot commented Jul 26, 2024

πŸ“¦ Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action πŸ€–

Eighty-five Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 119.5 KB (🟑 +360 B) 325.93 KB
/[productSlug]/docs 157.65 KB (🟑 +838 B) 364.08 KB
/[productSlug]/integrations 131.08 KB (🟑 +493 B) 337.51 KB
/[productSlug]/integrations/[organizationSlug]/[integrationSlug] 154.73 KB (🟑 +844 B) 361.17 KB
/[productSlug]/integrations/[organizationSlug]/[integrationSlug]/[integrationVersion] 154.73 KB (🟑 +844 B) 361.17 KB
/[productSlug]/integrations/[organizationSlug]/[integrationSlug]/[integrationVersion]/components/[componentType]/[componentSlug] 160.55 KB (🟑 +850 B) 366.98 KB
/[productSlug]/tutorials 129.82 KB (🟑 +536 B) 336.25 KB
/[productSlug]/tutorials/[...tutorialSlug] 208.33 KB (🟑 +1.04 KB) 414.77 KB
/[productSlug]/tutorials/[collectionSlug] 172.94 KB (🟑 +879 B) 379.38 KB
/_error 103.59 KB (🟑 +315 B) 310.02 KB
/boundary 141.18 KB (🟑 +707 B) 347.62 KB
/boundary/api-docs/[[...page]] 158.54 KB (🟑 +794 B) 364.98 KB
/boundary/docs/[...page] 155.71 KB (🟑 +840 B) 362.14 KB
/boundary/install 161.79 KB (🟑 +838 B) 368.23 KB
/certifications 156.43 KB (🟑 +659 B) 362.86 KB
/certifications/[slug] 156.83 KB (🟑 +660 B) 363.26 KB
/consul 141.18 KB (🟑 +707 B) 347.62 KB
/consul/api-docs/[[...page]] 155.71 KB (🟑 +840 B) 362.15 KB
/consul/commands/[[...page]] 155.71 KB (🟑 +839 B) 362.14 KB
/consul/docs/[...page] 155.7 KB (🟑 +839 B) 362.14 KB
/consul/install 155.7 KB (🟑 +837 B) 362.14 KB
/consul/install/enterprise 155.74 KB (🟑 +838 B) 362.18 KB
/hcp 141.18 KB (🟑 +703 B) 347.61 KB
/hcp/api-docs/consul/[[...page]] 146.63 KB (🟑 +658 B) 353.06 KB
/hcp/api-docs/packer/[[...page]] 146.63 KB (🟑 +659 B) 353.06 KB
/hcp/api-docs/vault-secrets/[[...page]] 146.63 KB (🟑 +659 B) 353.07 KB
/hcp/api-docs/webhook/[[...page]] 146.63 KB (🟑 +659 B) 353.07 KB
/hcp/docs/[...page] 155.7 KB (🟑 +840 B) 362.14 KB
/nomad 141.18 KB (🟑 +704 B) 347.62 KB
/nomad/api-docs/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/nomad/docs/[...page] 155.7 KB (🟑 +839 B) 362.14 KB
/nomad/install 155.01 KB (🟑 +791 B) 361.45 KB
/nomad/install/enterprise 155 KB (🟑 +792 B) 361.43 KB
/nomad/intro/[[...page]] 155.71 KB (🟑 +839 B) 362.14 KB
/nomad/plugins/[[...page]] 155.71 KB (🟑 +838 B) 362.14 KB
/nomad/tools/[[...page]] 155.71 KB (🟑 +840 B) 362.14 KB
/open-api-docs-preview 151.12 KB (🟑 +704 B) 357.55 KB
/packer 141.18 KB (🟑 +704 B) 347.62 KB
/packer/docs/[...page] 155.7 KB (🟑 +839 B) 362.14 KB
/packer/guides/[[...page]] 155.71 KB (🟑 +839 B) 362.14 KB
/packer/install 154.99 KB (🟑 +793 B) 361.42 KB
/profile/account 120.21 KB (🟑 +487 B) 326.64 KB
/profile/bookmarks 121.2 KB (🟑 +489 B) 327.63 KB
/sentinel 141.18 KB (🟑 +707 B) 347.62 KB
/sentinel/docs/[[...page]] 155.71 KB (🟑 +839 B) 362.14 KB
/sentinel/install 154.99 KB (🟑 +792 B) 361.43 KB
/sentinel/intro/[[...page]] 155.71 KB (🟑 +839 B) 362.14 KB
/terraform 141.18 KB (🟑 +705 B) 347.62 KB
/terraform/cdktf/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/terraform/cli/[[...page]] 155.71 KB (🟑 +840 B) 362.15 KB
/terraform/cloud-docs/[[...page]] 155.71 KB (🟑 +838 B) 362.15 KB
/terraform/cloud-docs/agents/[[...page]] 155.72 KB (🟑 +839 B) 362.15 KB
/terraform/docs/[...page] 155.71 KB (🟑 +840 B) 362.14 KB
/terraform/enterprise/[[...page]] 155.71 KB (🟑 +840 B) 362.15 KB
/terraform/install 154.99 KB (🟑 +793 B) 361.43 KB
/terraform/internals/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/terraform/intro/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/terraform/language/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/terraform/plugin/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/terraform/plugin/framework/[[...page]] 155.72 KB (🟑 +840 B) 362.16 KB
/terraform/plugin/log/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/terraform/plugin/mux/[[...page]] 155.72 KB (🟑 +840 B) 362.15 KB
/terraform/plugin/sdkv2/[[...page]] 155.72 KB (🟑 +840 B) 362.15 KB
/terraform/plugin/testing/[[...page]] 155.72 KB (🟑 +839 B) 362.15 KB
/terraform/registry/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/tutorials 114.79 KB (🟑 +315 B) 321.23 KB
/tutorials/library 136.81 KB (🟑 +533 B) 343.24 KB
/vagrant 141.18 KB (🟑 +705 B) 347.62 KB
/vagrant/docs/[...page] 155.71 KB (🟑 +840 B) 362.14 KB
/vagrant/install 155.66 KB (🟑 +836 B) 362.1 KB
/vagrant/install/vmware 155 KB (🟑 +792 B) 361.43 KB
/vagrant/intro/[[...page]] 155.71 KB (🟑 +840 B) 362.15 KB
/vagrant/vagrant-cloud/[[...page]] 155.71 KB (🟑 +839 B) 362.15 KB
/validated-designs 110.02 KB (🟑 +358 B) 316.46 KB
/validated-designs/[...slug] 153.05 KB (🟑 +750 B) 359.48 KB
/vault 141.18 KB (🟑 +704 B) 347.62 KB
/vault/api-docs/[[...page]] 155.71 KB (🟑 +839 B) 362.14 KB
/vault/docs/[...page] 155.7 KB (🟑 +839 B) 362.14 KB
/vault/install 154.99 KB (🟑 +793 B) 361.42 KB
/vault/install/enterprise 155 KB (🟑 +792 B) 361.43 KB
/waypoint 141.18 KB (🟑 +703 B) 347.62 KB
/waypoint/docs/[...page] 155.71 KB (🟑 +839 B) 362.14 KB
/well-architected-framework 133.28 KB (🟑 +618 B) 339.72 KB
/well-architected-framework/[...tutorialSlug] 176.16 KB (🟑 +882 B) 382.59 KB
/well-architected-framework/[collectionSlug] 121.58 KB (🟑 +532 B) 328.01 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

This PR is stale because it has been open 20 days with no activity. It will be closed in 5 days unless you remove the stale label or comment.

@github-actions github-actions bot added the stale label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant