Repository navigation
Conversation
- Integrated Sentry for error tracking and observability. - Updated CORS configuration to use a dedicated build function. - Implemented scoped rate limiting for ingest, auth, and API routes to improve performance and control. - Added implementation status section to documentation for better alignment with code.
…opentelemetry' packages with updated versions. Adjusted 'next' version references to include '@opentelemetry/api'.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 3 minutes and 5 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis pull request introduces observability infrastructure by integrating Sentry for error tracking and request logging, refactors rate limiting from global to per-scope configuration, implements dynamic CORS origin validation based on environment variables, and reorganizes app route registration including moving project dashboard routes into the Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
- Moved Sentry initialization to index.ts to ensure it runs before app imports for proper instrumentation. - Updated rate limit parsing logic to enforce positive values only, enhancing validation.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0b34c6c. Configure here.
- Introduced a new rate limit function for public endpoints to enhance API performance. - Refactored the health check endpoint to be registered within a scoped Fastify instance for better organization and maintainability. - Ensured the health check can verify database connectivity based on an environment variable, maintaining existing functionality.
…l-quote fix: resolve Dependabot #38 (shell-quote CVE-2026-9277)
Override transitive shell-quote so react-devtools-core and @flydotio/dockerfile resolve the CVE-2026-9277 patched release. Co-authored-by: Cursor <[email protected]>

Update dependencies and enhance API observability
Note
Medium Risk
Changes request handling at the Fastify entrypoint (CORS behavior in production and per-scope rate limiting), which can impact client access and traffic patterns. Adds optional Sentry initialization and error capture, introducing new runtime dependencies and startup-order sensitivity.
Overview
Adds optional Sentry-based observability to the API:
index.tsnow initializes Sentry (whenSENTRY_DSNis set) before loading the app, and Fastify gets a request ID generator plus anonErrorhook that logs structured error context and reports exceptions to Sentry.Refactors server setup to apply environment-driven CORS (
CORS_ORIGINS/DASHBOARD_ORIGINallowlist in prod) and scoped rate limiting with separate configurable caps for public, ingest, auth, and API surfaces (RATE_LIMIT_*_MAX). Documentation is updated to clarify which entitlement/plan limits are implemented vs still defaults.Reviewed by Cursor Bugbot for commit 205cea3. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
New Features
Documentation