Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(routing): Fixed 5xx error logs in dynamic routing metrics #7356

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

Sarthak1799
Copy link
Contributor

@Sarthak1799 Sarthak1799 commented Feb 24, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

A 5xx error log in DR metrics was spamming in alerts.
Have removed the log
Main PR - #7335

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

make a payment with dynamic routing enabled
5xx error log now converted to 4xx
image

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@Sarthak1799 Sarthak1799 self-assigned this Feb 24, 2025
@Sarthak1799 Sarthak1799 requested a review from a team as a code owner February 24, 2025 08:26
Copy link

semanticdiff-com bot commented Feb 24, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/core/routing/helpers.rs  97% smaller

@Sarthak1799 Sarthak1799 changed the base branch from main to hotfix-2025.02.19.0 February 24, 2025 08:27
@Sarthak1799 Sarthak1799 changed the title fix: Fixed 5xx error logs in dynamic routing metrics fix(routing): Fixed 5xx error logs in dynamic routing metrics Feb 24, 2025
@Sarthak1799 Sarthak1799 linked an issue Feb 24, 2025 that may be closed by this pull request
2 tasks
@Sarthak1799
Copy link
Contributor Author

Latest code compiles
image

@SanchithHegde SanchithHegde merged commit 770a08c into hotfix-2025.02.19.0 Feb 25, 2025
14 of 23 checks passed
@SanchithHegde SanchithHegde deleted the dr-fix-19 branch February 25, 2025 13:46
@Sarthak1799 Sarthak1799 added C-bug Category: Bug A-routing Area: Routing labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-routing Area: Routing C-bug Category: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Fix 5xx error mapping in dynamic routing metrics
4 participants