Skip to content

capture internal api error - #119

Merged
owens1127 merged 1 commit into
mainfrom
caputre-rabbit-error
Feb 22, 2026
Merged

capture internal api error#119
owens1127 merged 1 commit into
mainfrom
caputre-rabbit-error

Conversation

@owens1127

Copy link
Copy Markdown
Contributor

No description provided.

@owens1127
owens1127 marked this pull request as ready for review February 22, 2026 04:36
Copilot AI review requested due to automatic review settings February 22, 2026 04:36
@owens1127
owens1127 merged commit 927af8a into main Feb 22, 2026
7 checks passed
@owens1127
owens1127 deleted the caputre-rabbit-error branch February 22, 2026 04:36
@barecheck

barecheck Bot commented Feb 22, 2026

Copy link
Copy Markdown

Barecheck - Code coverage report

Total: 92.69%

Your code coverage diff: -0.19% ▾

Uncovered files and lines
FileLines
src/routes/status.ts107-108, 110-120, 136, 196, 229-230

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds structured logging for internal service failures in the /status endpoint so InternalApiError incidents are captured (including via Sentry integration in Logger.error) while still returning a 503 to clients.

Changes:

  • Introduce a Logger instance for STATUS_ROUTE.
  • When catching InternalApiError, log the error with relevant context fields (service name, URL, status).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/routes/status.ts
})
} catch (err) {
if (err instanceof InternalApiError) {
// log the error as a error for sentry

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

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

The inline comment has a grammar/spelling issue and is a bit unclear. Consider updating it to “log the error as an error for Sentry” (or rephrasing to note that Logger.error captures to Sentry).

Suggested change
// log the error as a error for sentry
// Log the error as an error in Sentry (via Logger.error)

Copilot uses AI. Check for mistakes.
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.

2 participants