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: filtered and error stats separated in processor #4137

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

Sidddddarth
Copy link
Member

@Sidddddarth Sidddddarth commented Nov 14, 2023

Description

separates filtered and error stats in processor.

Linear Ticket

slack thread

Security

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

Comment on lines +1091 to +1103
func (proc *Handle) getNonSuccessfulMetrics(
response transformer.Response,
commonMetaData *transformer.Metadata,
eventsByMessageID map[string]types.SingularEventWithReceivedAt,
inPU, pu string,
) *NonSuccessfulTransformationMetrics {
Copy link
Contributor

Choose a reason for hiding this comment

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

Personal preference: I don't find that by splitting a single line, that fits perfectly in the screen, into multiple lines makes the codebase more readable

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not fitting on my screen, I'm having to turn my head and sometimes worse: scroll!
To each their own though, can revert if it's becoming a nuisance for everyone

processor/processor.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (7b118b9) 72.55% compared to head (8e73bcb) 72.40%.

Files Patch % Lines
processor/processor.go 90.00% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4137      +/-   ##
==========================================
- Coverage   72.55%   72.40%   -0.16%     
==========================================
  Files         383      383              
  Lines       55476    55521      +45     
==========================================
- Hits        40252    40201      -51     
- Misses      12909    12987      +78     
- Partials     2315     2333      +18     

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

processor/processor.go Outdated Show resolved Hide resolved
@Sidddddarth Sidddddarth changed the title chore: isDropped tag for proc error stat chore: filtered and error stats separated in processor Nov 14, 2023
@Sidddddarth Sidddddarth force-pushed the chore.procErrorStatTag_isDropped branch 6 times, most recently from 7fbe2dc to ce39541 Compare November 20, 2023 16:54
@Sidddddarth Sidddddarth force-pushed the chore.procErrorStatTag_isDropped branch from ce39541 to 8e73bcb Compare November 21, 2023 09:43
@cisse21 cisse21 merged commit 22e4944 into master Nov 21, 2023
40 checks passed
@cisse21 cisse21 deleted the chore.procErrorStatTag_isDropped branch November 21, 2023 13:20
This was referenced Dec 5, 2023
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