Skip to content

chore: remove Sentry and Spotlight integration#116

Merged
CaseyHoover merged 1 commit intomainfrom
chore/remove-sentry
May 9, 2026
Merged

chore: remove Sentry and Spotlight integration#116
CaseyHoover merged 1 commit intomainfrom
chore/remove-sentry

Conversation

@CaseyHoover
Copy link
Copy Markdown
Owner

@CaseyHoover CaseyHoover commented May 9, 2026

Summary

  • Removes @sentry/nextjs, @sentry/node, and @spotlightjs/spotlight from the project entirely.
  • Drops withSentryConfig from apps/web/next.config.ts, deletes the four sentry.*.config.ts files and instrumentation.ts, strips Sentry.init / Sentry.captureException from apps/api/src/{index,app}.ts, and removes the /spotlight admin page + nav entry.
  • Cleans up SENTRY_SPOTLIGHT / NEXT_PUBLIC_SENTRY_SPOTLIGHT env defaults, the 8969:8969 devcontainer port, the spotlight server & invocation in pnpm dev, README/CONTRIBUTING references, and the @sentry/cli license allowlist entry in dependency-review.yaml.

Why

Per #110: Sentry/OpenTelemetry instrumentation caused severe dev-server slowdowns (notably a consistent 10s UND_ERR_CONNECT_TIMEOUT on the GitHub OAuth callback diagnosed in #109). Removing it fully restored ≤70ms callback latency and improved overall dev performance. Replacement observability tooling is intentionally not part of this change — see the companion investigation ticket called out in #110.

Closes #110

Test plan

  • pnpm install@spotlightjs/spotlight removed, no peer warnings introduced
  • pnpm lint — passes
  • pnpm build — web + api build clean; the /spotlight route is gone from the route manifest
  • pnpm test — 4 files / 20 tests pass
  • pnpm format:check — clean
  • Manual: pnpm dev, sign in, confirm admin sidebar no longer shows Spotlight and the GitHub OAuth callback completes quickly

🤖 Generated with Claude Code

Sentry's Next.js + Node SDKs caused severe dev-server slowdowns (10s
UND_ERR_CONNECT_TIMEOUT on the GitHub OAuth callback, sluggish overall
dev startup). Strip @sentry/nextjs, @sentry/node, @spotlightjs/spotlight,
the four sentry.*.config.ts files, withSentryConfig, instrumentation.ts,
the /spotlight admin page + nav entry, the SENTRY_SPOTLIGHT envs, the
8969 port mapping, and related docs/license allowlist entries.

Closes #110

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CaseyHoover CaseyHoover force-pushed the chore/remove-sentry branch from 2d69968 to 5d474cf Compare May 9, 2026 18:36
@CaseyHoover CaseyHoover merged commit 2666d19 into main May 9, 2026
7 checks passed
@CaseyHoover CaseyHoover deleted the chore/remove-sentry branch May 9, 2026 18:53
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

🎉 This PR is included in version 1.0.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

[Feature]: Remove Sentry from the application

1 participant