Open
Conversation
Instrument D1 queries via @sentry/cloudflare and wrap critical server operations with named Sentry spans: predictions, scoring, auth, leaderboard, activity feed, bracket views, and OG image generation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
mad-css | d56f047 | Commit Preview URL Branch Preview URL |
Feb 17 2026, 06:46 PM |
… and formatting fixes Enable client-side tracing via tanstackRouterBrowserTracingIntegration, set tracesSampleRate (1.0 dev / 0.2 prod) on both client and server, add Sentry diagnostics panel in admin, and clean up debug console.error calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use logs and metrics instead of captureMessage per Sentry best practices. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@sentry/cloudflareand wrap D1 binding withinstrumentD1WithSentry()so every Drizzle query creates SDK-compatible child spansSentry.startSpan()calls: predictions (fetch/save), scoring (recalculate + per-user upsert), auth middleware, leaderboard, activity feed, bracket views, and OG image generationNamed spans added
predictions.fetch/predictions.savesrc/routes/api/predictions/index.tsscoring.recalculateAll/scoring.upsertUsersrc/lib/scoring.tsauth.requireAuthsrc/lib/middleware/auth.tsauth.requireAdminsrc/lib/middleware/admin.tsleaderboard.fetchsrc/components/leaderboard/Leaderboard.tsxactivity.getRecentPickerssrc/components/leaderboard/Activity.tsxbracket.getPublicsrc/routes/api/bracket/$username.tsbracket.getDatasrc/routes/bracket/$username.tsxog.generateImagesrc/routes/api/og.$username.tsTest plan
predictions.savespan with DB childrenbracket.getDataandbracket.getPublicspansscoring.recalculateAllwith per-user child spanspnpm buildpasses (verified locally)pnpm testpasses — 17/17 (verified locally)🤖 Generated with Claude Code