-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: realtime user analytics #5098
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hyperswitch-bot
bot
added
the
M-database-changes
Metadata: This PR involves database schema changes
label
Jun 24, 2024
vsrivatsa-juspay
force-pushed
the
feat/realtime_user_analytics
branch
2 times, most recently
from
June 24, 2024 11:12
224008f
to
010e617
Compare
vsrivatsa-juspay
force-pushed
the
feat/realtime_user_analytics
branch
from
June 24, 2024 11:15
010e617
to
7e192b2
Compare
vsrivatsa-juspay
removed
the
M-database-changes
Metadata: This PR involves database schema changes
label
Jun 24, 2024
hyperswitch-bot
bot
added
the
M-database-changes
Metadata: This PR involves database schema changes
label
Jun 24, 2024
hyperswitch-bot
bot
removed
the
M-database-changes
Metadata: This PR involves database schema changes
label
Jun 24, 2024
14 tasks
vsrivatsa-juspay
added
A-Analytics
low-risk
label to track PRs which might have less impact on hyperswitch after merge
S-waiting-on-review
Status: This PR has been implemented and needs to be reviewed
labels
Jun 25, 2024
lsampras
reviewed
Jun 25, 2024
lsampras
reviewed
Jun 25, 2024
Co-authored-by: Sampras Lopes <[email protected]>
lsampras
previously approved these changes
Jun 25, 2024
Co-authored-by: Sampras Lopes <[email protected]>
lsampras
previously approved these changes
Jun 25, 2024
ivor-juspay
previously approved these changes
Jun 26, 2024
This reverts commit bbd4206.
vsrivatsa-juspay
dismissed stale reviews from ivor-juspay and lsampras
via
June 26, 2024 10:16
afa7525
lsampras
approved these changes
Jun 26, 2024
ivor-juspay
approved these changes
Jun 26, 2024
pixincreate
added a commit
that referenced
this pull request
Jun 28, 2024
…ay/hyperswitch into iatapay-through-hyperswitch-cypress * 'iatapay-through-hyperswitch-cypress' of github.com:juspay/hyperswitch: feat(router): skip apple pay session call if the browser is not Safari (#5136) fix(opensearch): show search results only if user has access permission to the index (#5097) chore(version): 2024.06.27.0 feat(users): add endpoint for terminate auth select (#5135) feat(users): implemented openidconnect (#5124) feat(router): add payments manual-update api (#5045) fix(docs): open-api fix for payment response (#5103) refactor(connector): [AdyenPlatform]Throw 4xx instead of 5xx for source_balance_account (#4990) feat: realtime user analytics (#5098) refactor(connector): added amount conversion framework for cashtocode (#4857) feat(email): Add `auth_id` in email types and send `auth_id` in email URLs (#5120) refactor(connector): add amount framework to payme & Trustpay with googlePay, ApplePay for bluesnap, Noon & Trustpay (#4833) fix(connector): [BOA/CYBS] make risk information message optional (#5107) chore(version): 2024.06.25.1 fix(router): skip serialize if none for assurance_details_required in googlepay session response (#5118) refactor: separate DB queries and HTML creation for payout links (#4967) feat(router): updated `last_used_at` field for apple pay and google pay for CITs (#5087) fix(payment_methods): use existing field value of `nick_name` in db if not sent during request (#5105) chore(version): 2024.06.25.0
pixincreate
added a commit
that referenced
this pull request
Jun 28, 2024
…ay/hyperswitch into refactor-error-handling-in-cypress * 'iatapay-through-hyperswitch-cypress' of github.com:juspay/hyperswitch: chore: clean up feat(router): skip apple pay session call if the browser is not Safari (#5136) fix(opensearch): show search results only if user has access permission to the index (#5097) chore(version): 2024.06.27.0 feat(users): add endpoint for terminate auth select (#5135) feat(users): implemented openidconnect (#5124) feat(router): add payments manual-update api (#5045) fix(docs): open-api fix for payment response (#5103) refactor(connector): [AdyenPlatform]Throw 4xx instead of 5xx for source_balance_account (#4990) feat: realtime user analytics (#5098) refactor(connector): added amount conversion framework for cashtocode (#4857) feat(email): Add `auth_id` in email types and send `auth_id` in email URLs (#5120) refactor(connector): add amount framework to payme & Trustpay with googlePay, ApplePay for bluesnap, Noon & Trustpay (#4833) fix(connector): [BOA/CYBS] make risk information message optional (#5107) chore(version): 2024.06.25.1 fix(router): skip serialize if none for assurance_details_required in googlepay session response (#5118) refactor: separate DB queries and HTML creation for payout links (#4967) feat(router): updated `last_used_at` field for apple pay and google pay for CITs (#5087) fix(payment_methods): use existing field value of `nick_name` in db if not sent during request (#5105) chore(version): 2024.06.25.0
SanchithHegde
removed
S-waiting-on-review
Status: This PR has been implemented and needs to be reviewed
low-risk
label to track PRs which might have less impact on hyperswitch after merge
labels
Jun 30, 2024
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
This PR introduces a real-time analytics feature that allows merchants to track distinct payment IDs on their dashboards. The key components of this feature include a script to create a ClickHouse table with a 1-minute Time-To-Live (TTL) for the data, and an analytics service that counts distinct payment IDs.
Also add the the http server for vector to collect and push logs to kafka in this PR.
Changes:
ClickHouse Table Creation Script:
Added a script to create a ClickHouse table with a 1-minute TTL. This table will store payment events and automatically purge entries older than 1 minute, ensuring that only recent data is kept for real-time analytics.
Analytics Service:
Implemented an analytics service that queries the ClickHouse table to count distinct payment IDs. This provides real-time insights into the number of unique payments processed within the last minute.
Additional Changes
Motivation and Context
How did you test it?
1. Start the necessary services using Docker Compose
2. Load the SDK and simulate payments
3. Verify Real-Time Analytics
Checklist
cargo +nightly fmt --all
cargo clippy