Skip to content

feat: add Sentry error tracking to api and web#25

Merged
RogutKuba merged 1 commit into
mainfrom
RogutKuba/add-sentry-error-tracking
Jul 13, 2026
Merged

feat: add Sentry error tracking to api and web#25
RogutKuba merged 1 commit into
mainfrom
RogutKuba/add-sentry-error-tracking

Conversation

@RogutKuba

Copy link
Copy Markdown
Member

Adds Sentry error tracking to both Cloudflare Worker apps: the API uses @sentry/cloudflare (withSentry plus explicit capture in the Hono onError for unexpected errors) and instruments the Room, PrivateRoom, and Whiteboard Durable Objects, while the web SPA uses @sentry/react with the TanStack Router tracing integration, an ErrorBoundary, and user context. The Sandbox container DO is intentionally left uninstrumented because wrapping it breaks getSandbox() RPC type inference across the codebase. DSNs are configured for prod/staging and disabled in local dev. It also adds @opentelemetry/api to the db and scripts packages so drizzle-orm (which lists it as an optional peer) resolves to a single copy and doesn't split into type-incompatible duplicates.

🤖 Generated with Claude Code

Wire up @sentry/cloudflare in the API worker (withSentry + explicit
capture in Hono onError for unexpected errors) and instrument the Room,
PrivateRoom, and Whiteboard Durable Objects. The Sandbox container DO is
left uninstrumented since wrapping it breaks getSandbox() RPC types.

Add @sentry/react in the web SPA with the TanStack Router tracing
integration, an ErrorBoundary, and user context. DSNs are disabled in
local dev.

Also add @opentelemetry/api to db/scripts so drizzle-orm (which lists it
as an optional peer) resolves to a single copy across the workspace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
coderscreen-marketing Ready Ready Preview, Comment Jul 13, 2026 2:30am

Request Review

@RogutKuba
RogutKuba merged commit 6d1f606 into main Jul 13, 2026
2 of 5 checks passed
@RogutKuba
RogutKuba deleted the RogutKuba/add-sentry-error-tracking branch July 13, 2026 02:29
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.

1 participant