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

version metrics #1199

Merged
merged 15 commits into from
Dec 6, 2022
Merged

version metrics #1199

merged 15 commits into from
Dec 6, 2022

Conversation

allenchen2244
Copy link
Contributor

Added a goroutine using sync.once inside baseworker to emit version metrics.

@allenchen2244 allenchen2244 requested a review from Groxx November 23, 2022 00:19
Copy link
Member

@Groxx Groxx left a comment

Choose a reason for hiding this comment

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

yea, one-time start + permanent-stop-at-any-time seems like a fairly safe combination, particularly since users can (and probably should) just run their own version-reporter for whatever they use. makes it easy to disable if desired: just close the channel at any point.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 0184e8ed-5ade-4e3f-b6f8-782e683183a9

  • 9 of 11 (81.82%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.0004%) to 64.274%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/internal_worker.go 9 11 81.82%
Files with Coverage Reduction New Missed Lines %
internal/internal_task_pollers.go 2 82.4%
Totals Coverage Status
Change from base Build 0184e178-bb32-4d8a-8b1b-46cc11b05a7b: -0.0004%
Covered Lines: 12682
Relevant Lines: 19731

💛 - Coveralls

@allenchen2244 allenchen2244 merged commit 53618e8 into master Dec 6, 2022
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.

3 participants