Skip to content

fix(ratelimiter): log metrics server failure instead of swallowing it - #541

Open
mesutoezdil wants to merge 17 commits into
NVIDIA:mainfrom
mesutoezdil:mesutoezdil/fix/ratelimiter-metrics-error-log
Open

fix(ratelimiter): log metrics server failure instead of swallowing it#541
mesutoezdil wants to merge 17 commits into
NVIDIA:mainfrom
mesutoezdil:mesutoezdil/fix/ratelimiter-metrics-error-log

Conversation

@mesutoezdil

@mesutoezdil mesutoezdil commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

setupMetrics swallowed the ListenAndServe error in an empty branch, so a
failed Prometheus bind left the service running with no metrics and no log
line. Now logs at error level, matching setupPprof and setupOlricStats.

Issues

Closes #540

Summary by CodeRabbit

  • Bug Fixes
    • Added error logging when the rate-limiter metrics service fails to start, improving visibility into service startup issues.

@mesutoezdil
mesutoezdil requested a review from a team as a code owner July 29, 2026 21:16
@mesutoezdil
mesutoezdil requested a review from balajinvda July 29, 2026 21:16
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 9f73ff7f-003c-43ae-8be7-a3abb3ef5cbe

📥 Commits

Reviewing files that changed from the base of the PR and between 13c2ab5 and b18291b.

📒 Files selected for processing (1)
  • src/invocation-plane-services/ratelimiter/cmd/main.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/invocation-plane-services/ratelimiter/cmd/main.go

📝 Walkthrough

Walkthrough

The rate-limiter metrics HTTP listener now logs errors returned by ListenAndServe, including failures to start the /metrics server.

Changes

Rate-limiter metrics

Layer / File(s) Summary
Log metrics listener failures
src/invocation-plane-services/ratelimiter/cmd/main.go
Records ListenAndServe failures with an error-level zap log.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Mergeability Score: ⚪ Minimal · up to b1829

This localized change makes metrics server failures visible at error level without changing service behavior; no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: balajinvda

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

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.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses valid Conventional Commits syntax and accurately describes the ratelimiter bug fix.
Linked Issues check ✅ Passed The change logs the metrics listener failure and addresses the empty error branch described in [#540].
Out of Scope Changes check ✅ Passed The one-line change is limited to logging metrics server failures and has no unrelated modifications.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@mesutoezdil
mesutoezdil force-pushed the mesutoezdil/fix/ratelimiter-metrics-error-log branch 2 times, most recently from ba46b85 to bc0347c Compare July 31, 2026 06:47
Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@mesutoezdil
mesutoezdil force-pushed the mesutoezdil/fix/ratelimiter-metrics-error-log branch from bc0347c to 4bccf44 Compare August 1, 2026 07:54
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

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.

ratelimiter: metrics server failure is swallowed by an empty error branch

1 participant