Skip to content

Observability: Sentry uptime#131

Merged
AkhileshNegi merged 2 commits into
mainfrom
monitoring/sentry
Apr 29, 2026
Merged

Observability: Sentry uptime#131
AkhileshNegi merged 2 commits into
mainfrom
monitoring/sentry

Conversation

@AkhileshNegi
Copy link
Copy Markdown
Contributor

@AkhileshNegi AkhileshNegi commented Apr 29, 2026

Summary

Target Issue: #132

  • Added a health check endpoint to monitor application status.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fe8ffab6-cf7e-4eed-a447-42ffc0fa1f5c

📥 Commits

Reviewing files that changed from the base of the PR and between 2884ac6 and 8e3fa09.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • app/api/health/route.ts
  • next.config.ts

📝 Walkthrough

Walkthrough

This pull request introduces a new health check API endpoint at app/api/health/route.ts configured for dynamic execution, and updates next.config.ts to allow development requests from ngrok-free.app domains.

Changes

Cohort / File(s) Summary
Health Check Endpoint
app/api/health/route.ts
New API route that responds to GET requests with { status: "ok" }, forces dynamic execution via force-dynamic, and disables caching with Cache-Control: no-store header.
Development Configuration
next.config.ts
Added allowedDevOrigins configuration entry to permit requests from *.ngrok-free.app during development.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐰 A health check hops into place,
With dynamic force and speedy grace,
ngrok tunnels open the dev door wide,
Status "ok" runs with bunny pride! 🌟

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Observability: Sentry uptime' is partially related to the changeset. While it mentions 'Observability' which aligns with monitoring, the actual changes add a health check endpoint and ngrok configuration for development, but don't appear to directly implement Sentry uptime monitoring. Clarify whether the health endpoint serves as preparation for Sentry integration, or update the title to more accurately reflect the actual changes: creating a health check API route and configuring development origins.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch monitoring/sentry

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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

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

@AkhileshNegi AkhileshNegi self-assigned this Apr 29, 2026
@AkhileshNegi AkhileshNegi added the enhancement New feature or request label Apr 29, 2026
@AkhileshNegi AkhileshNegi requested a review from Ayush8923 April 29, 2026 06:22
@AkhileshNegi AkhileshNegi linked an issue Apr 29, 2026 that may be closed by this pull request
Comment thread next.config.ts Outdated
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
allowedDevOrigins: ["*.ngrok-free.app"],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think ngrok needed for production and staging. This is only for local testing maybe.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes will remove

@AkhileshNegi AkhileshNegi requested a review from Ayush8923 April 29, 2026 06:38
@AkhileshNegi AkhileshNegi merged commit c4b6bfe into main Apr 29, 2026
2 checks passed
@AkhileshNegi AkhileshNegi deleted the monitoring/sentry branch April 29, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uptime Monitoring: Automated alerts for frontend

2 participants