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(analytics): Added load time metric for sdk, added percentile aggregate enum #4301

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vsrivatsa-juspay
Copy link
Contributor

Type of Change

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

Description

Added load time metric for sdk, added percentile aggregate enum

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
  • I added a CHANGELOG entry if applicable

@vsrivatsa-juspay vsrivatsa-juspay requested a review from a team as a code owner April 4, 2024 11:45
@vsrivatsa-juspay vsrivatsa-juspay self-assigned this Apr 4, 2024
@vsrivatsa-juspay vsrivatsa-juspay linked an issue Apr 4, 2024 that may be closed by this pull request
2 tasks
@vsrivatsa-juspay vsrivatsa-juspay force-pushed the feat/sdk_analytics_load_time_metrics branch from ba318e8 to 633b54c Compare April 5, 2024 14:21
@vsrivatsa-juspay vsrivatsa-juspay force-pushed the feat/sdk_analytics_load_time_metrics branch from 83b0f8c to 97158e2 Compare April 16, 2024 13:07
@@ -7,7 +7,8 @@ use super::metrics::SdkEventMetricRow;
pub struct SdkEventMetricsAccumulator {
pub payment_attempts: CountAccumulator,
pub payment_methods_call_count: CountAccumulator,
pub average_payment_time: AverageAccumulator,
pub average_payment_time: CountAccumulator,
pub load_time: CountAccumulator,
Copy link
Contributor

Choose a reason for hiding this comment

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

is this correct with percentile? can you share a query?

Copy link
Contributor

Choose a reason for hiding this comment

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

also why is average_payment_time changed to CountAccumulator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ivor-juspay wanted to rename the metric to payment_time since its now the median value

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.

[FEATURE] Authentication Analytics
2 participants