Skip to content

Disable Sentry performance tracing on brios - #2371

Merged
brianlovin merged 1 commit into
mainfrom
cursor/disable-sentry-performance-tracing-a132
Sep 16, 2026
Merged

brianlovin merged 1 commit into
mainfrom
cursor/disable-sentry-performance-tracing-a132

Conversation

@brianlovin

@brianlovin brianlovin commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Why

The Sentry org is at ~80% reserved spans. The brios project (brianlovin.com) is about half of that volume. Browser tracing on /sites alone was ~1.64M spans in the last 14 days (http.client, resource.img, resource.script).

Brian does not use performance spans for this site. Error monitoring should stay on.

What

Set tracesSampleRate from 1 to 0 in all three Sentry init configs:

  • instrumentation-client.ts (browser)
  • sentry.server.config.ts (Node)
  • sentry.edge.config.ts (edge / middleware)

0 means this app does not sample its own traces, so /sites browser spans stop being ingested. There is no separate browserTracingIntegration, enableLogs, resource-span, or HTTP client span config in this repo that would keep emitting performance spans.

Left intact:

  • DSN
  • Error capture (captureException / withErrorCapture)
  • onRequestError (Sentry.captureRequestError)
  • captureRouterTransitionStart (kept; with sample rate 0 it does not ingest performance spans for this site's own navigations)

Testing

  • Confirmed the only tracesSampleRate assignments are now 0, and DSN / error hooks remain
  • @sentry/core sampleSpan({ tracesSampleRate: 0 }, …) returns sampled: false
  • bun run lint passed
  • bun run build passed (Next.js 16.3.0; compiled + TypeScript + 68/68 pages)
  • No new tests: this is SDK sampling config, not user-facing copy or flow logic
Open in Web Open in Cursor 

Keep error monitoring (DSN, onRequestError, captureRouterTransitionStart).
Set tracesSampleRate to 0 on client, server, and edge so /sites browser
spans (http.client, resource.img/script) are no longer ingested.

Co-authored-by: Brian Lovin <brianlovin@users.noreply.github.com>
@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
brios Ready Ready Preview Sep 16, 2026 7:50pm UTC

Request Review

@brianlovin
brianlovin marked this pull request as ready for review September 16, 2026 19:55
@brianlovin
brianlovin merged commit 85d08f7 into main Sep 16, 2026
5 checks passed
@brianlovin
brianlovin deleted the cursor/disable-sentry-performance-tracing-a132 branch September 16, 2026 19:55
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