Skip to content

Enable Sentry browser profiling - #1543

Merged
manudeli merged 2 commits into
mainfrom
manudeli/sentry-browser-profiling
Nov 22, 2026
Merged

manudeli merged 2 commits into
mainfrom
manudeli/sentry-browser-profiling

Conversation

@manudeli

@manudeli manudeli commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Enable Sentry browser profiling with profileLifecycle: 'trace' and sample 100% of production browser sessions. Profiles follow the existing TanStack Router page-load and navigation traces and use the existing tanstack-com Sentry project.
  • Send Document-Policy: js-profiling on HTML responses from the Worker.

Verification

  • pnpm build, type checks, lint, and desktop tests passed.
  • Called the built Worker directly and verified /terms returned Document-Policy: js-profiling and /builder/llms.txt returned a text response without that header.
  • The local sandbox blocked Chrome and listener-based tests. GitHub CI is running the full suite.
  • After deploy, open the site in Chrome, navigate between pages, and verify that browser profiles appear in Sentry.

Sentry browser profiling docs

@manudeli
manudeli requested a review from a team November 22, 2026 15:44
@changeset-bot

changeset-bot Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 93c488e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff0c9ded-f0f3-4d39-aba8-92162ea7e84a
Commits

Reviewing files that changed from the base of the PR and between 3599a0e and 93c488e.

Files selected for processing: 2

  • src/router.tsx
  • src/server.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19620.19 KiB 19636.49 KiB 🔴 +16.29 KiB (+0.08%)
JavaScript (gzip) 6452.41 KiB 6457.58 KiB 🔴 +5.17 KiB (+0.08%)
CSS 795.21 KiB 795.21 KiB 0.00 KiB (0.00%)
CSS (gzip) 121.46 KiB 121.46 KiB 0.00 KiB (0.00%)
Page Main (gzip) PR merge build (gzip) Change
/ 563.45 KiB 568.69 KiB 🔴 +5.24 KiB (+0.93%)
/libraries 533.33 KiB 538.57 KiB 🔴 +5.24 KiB (+0.98%)
/start/latest 558.12 KiB 563.36 KiB 🔴 +5.24 KiB (+0.94%)
/router/latest 558.42 KiB 563.66 KiB 🔴 +5.24 KiB (+0.94%)
/query/latest 556.87 KiB 562.11 KiB 🔴 +5.24 KiB (+0.94%)
/table/latest 589.67 KiB 594.92 KiB 🔴 +5.25 KiB (+0.89%)
/charts/latest 638.97 KiB 644.22 KiB 🔴 +5.25 KiB (+0.82%)
/ai/latest 583.79 KiB 589.03 KiB 🔴 +5.24 KiB (+0.90%)
Docs article 544.38 KiB 549.62 KiB 🔴 +5.24 KiB (+0.96%)
Framework docs article 544.38 KiB 549.63 KiB 🔴 +5.24 KiB (+0.96%)
/blog 537.54 KiB 542.78 KiB 🔴 +5.24 KiB (+0.98%)
/maintainers 536.63 KiB 541.87 KiB 🔴 +5.24 KiB (+0.98%)
/showcase 534.59 KiB 539.83 KiB 🔴 +5.24 KiB (+0.98%)
/chat 533.40 KiB 538.65 KiB 🔴 +5.24 KiB (+0.98%)
/chat/c/:conversationId 533.54 KiB 538.78 KiB 🔴 +5.24 KiB (+0.98%)

Page sizes sum the JS and CSS in the TanStack Start manifest for each route and its layouts. Shared files count once per page.

Compared with main at 3599a0e. Gzip sizes are summed per file. Build run

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 93c488e Commit Preview URL

Branch Preview URL
Nov 22 2026, 03:47 PM

@manudeli
manudeli merged commit 299f3de into main Nov 22, 2026
11 checks passed
@manudeli
manudeli deleted the manudeli/sentry-browser-profiling branch November 22, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants