Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Apr 11, 2025

For browser/node SDKs, we do not need to have a higher-level "Profiling" page that is empty with just a single sub-page "Browser Profiling" / "Node Profiling".

Instead, now those will simply have a single "Profiling" page with the respective content. Only meta SDKs have a landing page with sub pages.

Note that this may break some links, e.g. when somebody used to link to express/profiling/node-profiling 🤔 We'd have to manually add a redirect for every single guide here, not sure if we want this? 😬 as we cannot blanket redirect e.g. /guides/:guide/profiling/profiling-node because this page does exist in some places.

Or alternatively we rename the new pages to something else (e.g. profiling/node and profiling/browser), then we can blanket-redirect again - WDYT?

@mydea mydea requested review from a team, AbhiPrasad, JonasBa, chargome and codyde April 11, 2025 10:10
@mydea mydea self-assigned this Apr 11, 2025
@vercel
Copy link

vercel bot commented Apr 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2025 0:52am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Apr 11, 2025 0:52am
develop-docs ⬜️ Ignored (Inspect) Visit Preview Apr 11, 2025 0:52am

@codecov
Copy link

codecov bot commented Apr 11, 2025

Bundle Report

Changes will increase total bundle size by 6.62kB (0.03%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.14MB 6.62kB (0.06%) ⬆️
sentry-docs-client-array-push 9.47MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.75MB -0.0%
../instrumentation.js -3 bytes 1.08MB -0.0%
9523.js -3 bytes 1.05MB -0.0%
../app/[[...path]]/page.js.nft.json 2.21kB 386.82kB 0.57%
../app/platform-redirect/page.js.nft.json 2.21kB 386.74kB 0.57%
../app/sitemap.xml/route.js.nft.json 2.21kB 384.71kB 0.58%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.7kB -0.0%
static/chunks/8165-*.js -3 bytes 410.1kB -0.0%
static/DkevNM0Xf9l1ngx1rdZvY/_buildManifest.js (New) 578 bytes 578 bytes 100.0% 🚀
static/DkevNM0Xf9l1ngx1rdZvY/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/Q2bRB1ZYGnvmboilKq2N4/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/Q2bRB1ZYGnvmboilKq2N4/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

@chargome
Copy link
Member

chargome commented Apr 11, 2025

I would either rename the pages to have solid redirects or simply add hardcoded redirects for the guides that changed (e.g. https://docs.sentry.io/platforms/javascript/profiling/browser-profiling/ does have quite some traffic on plausible but would result in a 404 with this change)

mydea added 5 commits April 11, 2025 14:28
For browser/node SDKs, we do not need to have a higher-level "Profiling" page that is empty with just a single sub-page "Browser Profiling" / "Node Profiling".

Instead, now those will simply have a single "Profiling" page with the respective content. Only meta SDKs have a landing page with sub pages.
@mydea mydea force-pushed the fn/js-profiling-docs branch from fd2114d to 2b81fd7 Compare April 11, 2025 12:37
@mydea
Copy link
Member Author

mydea commented Apr 11, 2025

I would either rename the pages to have solid redirects or simply add hardcoded redirects for the guides that changed (e.g. https://docs.sentry.io/platforms/javascript/profiling/browser-profiling/ does have quite some traffic on plausible but would result in a 404 with this change)

Makes sense - I renamed them to profiling/browser and profiling/node and added general redirects to the profiling page!

Copy link
Member

@chargome chargome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mydea mydea merged commit 9f664fa into master Apr 14, 2025
13 checks passed
@mydea mydea deleted the fn/js-profiling-docs branch April 14, 2025 12:11
bitsandfoxes pushed a commit that referenced this pull request Apr 24, 2025
* feat(js): Update profiling pages to avoid unnecessary nesting

For browser/node SDKs, we do not need to have a higher-level "Profiling" page that is empty with just a single sub-page "Browser Profiling" / "Node Profiling".

Instead, now those will simply have a single "Profiling" page with the respective content. Only meta SDKs have a landing page with sub pages.

* rename to browser

* rename node

* add redirects

* avoid already renaming this
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants