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

patch: eventDispatcher metrics, remove event type label and introduce scheme label #485

Merged

Conversation

denopink
Copy link
Contributor

@denopink denopink commented Oct 11, 2024

  • remove event type label
  • add scheme label
  • add tests for eventDispatcher metrics

@denopink denopink added the bug label Oct 11, 2024
@denopink denopink self-assigned this Oct 11, 2024
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 76.71233% with 17 lines in your changes missing coverage. Please review.

Project coverage is 59.42%. Comparing base (5359d6d) to head (b62d065).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
eventDispatcher.go 82.97% 7 Missing and 1 partial ⚠️
metrics.go 64.70% 6 Missing ⚠️
workerPool.go 66.66% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #485      +/-   ##
==========================================
+ Coverage   59.15%   59.42%   +0.26%     
==========================================
  Files          18       18              
  Lines        1496     1496              
==========================================
+ Hits          885      889       +4     
+ Misses        569      565       -4     
  Partials       42       42              
Flag Coverage Δ
unittests 59.42% <76.71%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@denopink denopink marked this pull request as draft October 11, 2024 21:56
@denopink denopink marked this pull request as ready for review October 11, 2024 23:22
@denopink denopink changed the title patch: eventDispatcher metrics, for unsupported event types default the url label to unknown patch: eventDispatcher metrics, remove the url label and limit event_type label value Oct 11, 2024
eventDispatcher.go Outdated Show resolved Hide resolved
@denopink denopink changed the title patch: eventDispatcher metrics, remove the url label and limit event_type label value patch: eventDispatcher metrics, remove event type label and introduce scheme label Oct 14, 2024
@denopink denopink force-pushed the denopink/patch/remove-url-label-for-unsupported_events branch 2 times, most recently from 6c3cc9c to 473d831 Compare October 14, 2024 17:55
err = ErrorUnroutableDestination
d.logger.Error("Unroutable destination", zap.Any("destination", destination))
}
scheme, err = d.routeMessageReceivedEvent(event)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

took this opportunity to make the code more readable/maintainable and reduce its cognitive load

eventDispatcher.go Outdated Show resolved Hide resolved
… scheme label

- remove event type label
- add scheme label
- add tests for eventDispatcher metrics
@denopink denopink force-pushed the denopink/patch/remove-url-label-for-unsupported_events branch from 473d831 to b62d065 Compare October 14, 2024 18:26
@denopink denopink merged commit b60b5e6 into main Oct 14, 2024
18 checks passed
@denopink denopink deleted the denopink/patch/remove-url-label-for-unsupported_events branch October 14, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants