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

feat(routing): success based routing metrics #5951

Draft
wants to merge 97 commits into
base: main
Choose a base branch
from
Draft

Conversation

prajjwalkumar17
Copy link
Contributor

Type of Change

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

Description

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?

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

prajjwalkumar17 and others added 30 commits September 6, 2024 21:05
@prajjwalkumar17 prajjwalkumar17 self-assigned this Sep 19, 2024
Copy link

semanticdiff-com bot commented Sep 19, 2024

Review changes with SemanticDiff.

Analyzed 13 of 14 files.

Overall, the semantic diff is 5% smaller than the GitHub diff.

Filename Status
✔️ crates/storage_impl/src/redis/cache.rs Analyzed
✔️ crates/storage_impl/src/redis/pub_sub.rs 15.22% smaller
crates/router/Cargo.toml Unsupported file format
✔️ crates/router/src/types/api.rs Analyzed
✔️ crates/router/src/core/metrics.rs Analyzed
✔️ crates/router/src/core/payments.rs 36.32% smaller
✔️ crates/router/src/core/routing.rs Analyzed
✔️ crates/router/src/core/routing/helpers.rs 5.31% smaller
✔️ crates/router/src/core/payments/operations.rs Analyzed
✔️ crates/router/src/core/payments/operations/payment_response.rs Analyzed
✔️ crates/hyperswitch_interfaces/src/api.rs Analyzed
✔️ crates/common_enums/src/enums.rs Analyzed
✔️ crates/api_models/src/enums.rs Analyzed
✔️ crates/api_models/src/routing.rs Analyzed

@prajjwalkumar17 prajjwalkumar17 marked this pull request as draft September 19, 2024 06:03
crates/router/src/core/metrics.rs Outdated Show resolved Hide resolved
Comment on lines +401 to +405
Connector::Zsl => Self::Zsl,
Connector::Gpayments => Self::Zsl,
Connector::Taxjar => Self::Zsl,
Connector::Threedsecureio => Self::Zsl,
Connector::Netcetera => Self::Zsl,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
Connector::Zsl => Self::Zsl,
Connector::Gpayments => Self::Zsl,
Connector::Taxjar => Self::Zsl,
Connector::Threedsecureio => Self::Zsl,
Connector::Netcetera => Self::Zsl,
Connector::Zsl => Self::Zsl,
Connector::Gpayments => Self::Zsl,
Connector::Taxjar => Self::Zsl,
Connector::Threedsecureio => Self::Zsl,
Connector::Netcetera => Self::Zsl,

@@ -10,7 +10,7 @@ license.workspace = true

[features]
default = ["common_default", "v1"]
common_default = ["kv_store", "stripe", "oltp", "olap", "accounts_cache", "dummy_connector", "payouts", "payout_retry", "retry", "frm", "tls", "partial-auth", "km_forward_x_request_id"]
common_default = ["dynamic_routing","kv_store", "stripe", "oltp", "olap", "accounts_cache", "dummy_connector", "payouts", "payout_retry", "retry", "frm", "tls", "partial-auth", "km_forward_x_request_id"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
common_default = ["dynamic_routing","kv_store", "stripe", "oltp", "olap", "accounts_cache", "dummy_connector", "payouts", "payout_retry", "retry", "frm", "tls", "partial-auth", "km_forward_x_request_id"]
common_default = ["kv_store", "stripe", "oltp", "olap", "accounts_cache", "dummy_connector", "payouts", "payout_retry", "retry", "frm", "tls", "partial-auth", "km_forward_x_request_id"]

crates/storage_impl/src/redis/cache.rs Show resolved Hide resolved
@prajjwalkumar17 prajjwalkumar17 linked an issue Sep 19, 2024 that may be closed by this pull request
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.

Integration with Payments core for metrics creation
2 participants