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

refactor: reduce the error report sample events #5371

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

koladilip
Copy link
Contributor

@koladilip koladilip commented Dec 12, 2024

Description

To reduce the load on the rudder server database, we are reducing the number of sample events collected.

Refactored some utils to reduce both metrics and error reporters.

Linear Ticket

https://linear.app/rudderstack/issue/INT-2974/%5Bchore%5D-collect-less-sample-events-from-errors-table#comment-926c8972
Resolves INT-2974

Security

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

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 82.40741% with 19 lines in your changes missing coverage. Please review.

Project coverage is 74.88%. Comparing base (f22e8f4) to head (a9378f4).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
enterprise/reporting/error_reporting.go 67.74% 8 Missing and 2 partials ⚠️
enterprise/reporting/utils.go 91.04% 6 Missing ⚠️
enterprise/reporting/reporting.go 60.00% 2 Missing ⚠️
...nterprise/reporting/event_sampler/event_sampler.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5371      +/-   ##
==========================================
+ Coverage   74.68%   74.88%   +0.20%     
==========================================
  Files         437      438       +1     
  Lines       61240    61279      +39     
==========================================
+ Hits        45737    45889     +152     
+ Misses      12954    12854     -100     
+ Partials     2549     2536      -13     

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

Copy link
Contributor

@vamsikrishnakandi vamsikrishnakandi left a comment

Choose a reason for hiding this comment

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

LGTM. @satishrudderstack can you please take a look

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.

4 participants