Skip to content

refactor: sentry vars#131

Merged
gaboesquivel merged 1 commit intomainfrom
sentry-naming
Mar 10, 2026
Merged

refactor: sentry vars#131
gaboesquivel merged 1 commit intomainfrom
sentry-naming

Conversation

@gaboesquivel
Copy link
Copy Markdown
Member

@gaboesquivel gaboesquivel commented Mar 10, 2026

Summary by CodeRabbit

  • Chores

    • Renamed error-reporting environment variables to SENTRY_* equivalents across server and client configs and runtime mappings.
    • Updated runtime initialization and startup messages to reference the new SENTRY_* variables (no behavior changes).
  • Documentation

    • Updated guides, examples, and README content to use the SENTRY_* environment variable names.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

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

Project Deployment Actions Updated (UTC)
basilic-docs Ready Ready Preview, Comment Mar 10, 2026 6:36am
basilic-fastify Ready Ready Preview, Comment Mar 10, 2026 6:36am
basilic-next Ready Ready Preview, Comment Mar 10, 2026 6:36am

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 74fd641d-2cf1-41be-b510-ade0f704cfbf

📥 Commits

Reviewing files that changed from the base of the PR and between 1a70076 and ca420dd.

📒 Files selected for processing (10)
  • apps/docu/content/docs/deployment/vercel.mdx
  • apps/fastify/server.ts
  • apps/fastify/src/lib/env.ts
  • apps/next/error-reporting.client.ts
  • apps/next/error-reporting.server.ts
  • apps/next/lib/env.ts
  • apps/next/sentry.edge.config.ts
  • packages/error/README.md
  • packages/error/src/core/capture-impl.ts
  • turbo.json
🚧 Files skipped from review as they are similar to previous changes (6)
  • turbo.json
  • packages/error/src/core/capture-impl.ts
  • packages/error/README.md
  • apps/fastify/server.ts
  • apps/next/sentry.edge.config.ts
  • apps/next/error-reporting.client.ts

Walkthrough

This PR renames error-reporting environment variables from ERROR_REPORTING_* to SENTRY_* across schemas, init calls, docs, README, and build config; no behavioral or control-flow changes were introduced.

Changes

Cohort / File(s) Summary
Env schemas & runtime mappings
apps/fastify/src/lib/env.ts, apps/next/lib/env.ts
Replaced ERROR_REPORTING_* schema/runtime keys with SENTRY_* and NEXT_PUBLIC_SENTRY_* equivalents; preserved optional string validation and runtime mapping semantics.
Server init & edge config
apps/fastify/server.ts, apps/next/error-reporting.server.ts, apps/next/sentry.edge.config.ts
Updated initErrorReporting usages to read DSN and environment from SENTRY_DSN / SENTRY_ENVIRONMENT (fallbacks unchanged).
Client init
apps/next/error-reporting.client.ts
Switched client config to use NEXT_PUBLIC_SENTRY_DSN and NEXT_PUBLIC_SENTRY_ENVIRONMENT (fallbacks unchanged).
Docs & deployment guidance
apps/docu/content/docs/deployment/vercel.mdx, packages/error/README.md
Replaced example env var names and guidance to reference SENTRY_* / NEXT_PUBLIC_SENTRY_* instead of ERROR_REPORTING_*.
Error package messages
packages/error/src/core/capture-impl.ts
Updated warning/log message to instruct setting SENTRY_DSN instead of ERROR_REPORTING_DSN.
Build / CI env config
turbo.json
Replaced ERROR_REPORTING_* with SENTRY_* variables across tasks; added Sentry-related tokens (SENTRY_ORG, SENTRY_PROJECT, SENTRY_AUTH_TOKEN) where applicable.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 I hopped through files with nimble feet,
Swapped ERROR names for SENTRY neat,
From env to docs and init too,
A tidy trail of variables new—
Carrots, code, and a hopping "woo!" 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'refactor: sentry vars' directly matches the main change: renaming environment variables from ERROR_REPORTING_* to SENTRY_* across the codebase.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sentry-naming

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

Comment @coderabbitai help to get the list of available commands and usage tips.

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