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

chore: add custom buckets to gateway.user_suppression_age #3679

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

BonapartePC
Copy link
Contributor

@BonapartePC BonapartePC commented Jul 28, 2023

Description

Add custom buckets i.e. 1 day, 5 days, 10 days, 30 days, 60 days, 90 days, 180 days, 360 days for gateway.user_suppression_age metric

Notion Ticket

https://www.notion.so/rudderstacks/Add-custom-buckets-1-day-5-days-10-days-30-days-60-days-90-days-180-days-360-days-for-gateway-6fc3093d32834f6a9ee3576964f81a81

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release/1.11.x@736feeb). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                Coverage Diff                @@
##             release/1.11.x    #3679   +/-   ##
=================================================
  Coverage                  ?   67.98%           
=================================================
  Files                     ?      318           
  Lines                     ?    50383           
  Branches                  ?        0           
=================================================
  Hits                      ?    34253           
  Misses                    ?    13898           
  Partials                  ?     2232           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -4,4 +4,7 @@ var customBuckets = map[string][]float64{
"gateway.response_time": {
0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 60,
},
"gateway.user_suppression_age": {
86400, 2592000, 5184000, 7776000, // 1 day, 1 month, 2 months, 3 months
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not some more buckets, e.g.

1d, 5d, 10d, 30d, 60d 90d 180d, 360d

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the buckets as
1d, 5d, 10d, 30d, 60d 90d 180d, 360d
cc @lvrach

@BonapartePC BonapartePC merged commit d1bc95c into release/1.11.x Jul 28, 2023
43 checks passed
@github-actions github-actions bot deleted the chore.customBuckets1 branch September 29, 2023 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants