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

fix!: handle error on metrics #123

Merged
merged 1 commit into from
Oct 13, 2023
Merged

fix!: handle error on metrics #123

merged 1 commit into from
Oct 13, 2023

Conversation

Wondertan
Copy link
Member

I treated metrics initialization as like it's being run in init while it's not. Even if these are programmer bug errors, metrics initialization will happen after some other components have started, causing various artifacts if not stopped gracefully.

@Wondertan Wondertan force-pushed the p2p/susbcriber/error branch from 83a08c9 to 4716bc9 Compare October 12, 2023 14:58
@codecov-commenter
Copy link

Codecov Report

Merging #123 (4716bc9) into main (27e85f9) will decrease coverage by 0.17%.
The diff coverage is 10.00%.

@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
- Coverage   69.43%   69.27%   -0.17%     
==========================================
  Files          37       37              
  Lines        2971     2981      +10     
==========================================
+ Hits         2063     2065       +2     
- Misses        761      769       +8     
  Partials      147      147              
Files Coverage Δ
p2p/subscriber.go 48.52% <100.00%> (ø)
p2p/metrics.go 13.79% <0.00%> (-1.03%) ⬇️
sync/metrics.go 15.38% <0.00%> (-1.29%) ⬇️
p2p/exchange.go 85.65% <0.00%> (-1.14%) ⬇️
sync/sync.go 71.19% <0.00%> (-1.19%) ⬇️

... and 1 file with indirect coverage changes

@renaynay renaynay merged commit 098c994 into main Oct 13, 2023
@renaynay renaynay deleted the p2p/susbcriber/error branch October 13, 2023 12:27
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.

4 participants