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

feat(share/discovery): add discovery metrics #2155

Merged
merged 63 commits into from
May 11, 2023

Conversation

walldiss
Copy link
Member

@walldiss walldiss commented May 3, 2023

Overview

Adds metrics for discovery component

distractedm1nd and others added 30 commits April 27, 2023 17:11
- rework errorgroup loop to respect findCtx and stop when it is canceled
- use parent context instead of findCtx for handlePeer to not cancel connection when it is half done
- allow wg pool be cancelable from another routine
 - send update notification asap
distractedm1nd
distractedm1nd previously approved these changes May 3, 2023
Copy link
Member

@distractedm1nd distractedm1nd left a comment

Choose a reason for hiding this comment

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

very clean

share/availability/discovery/metrics.go Outdated Show resolved Hide resolved
share/availability/discovery/discovery.go Outdated Show resolved Hide resolved
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

lgtm but +1 to the comment from hlib

- add stuck counter
Wondertan
Wondertan previously approved these changes May 9, 2023
@Wondertan
Copy link
Member

But needs to be rebases

derrandz
derrandz previously approved these changes May 9, 2023
# Conflicts:
#	share/availability/discovery/discovery.go
@walldiss walldiss dismissed stale reviews from derrandz and Wondertan via f722beb May 9, 2023 17:37
Wondertan
Wondertan previously approved these changes May 9, 2023
@walldiss walldiss requested a review from derrandz May 11, 2023 09:08
renaynay
renaynay previously approved these changes May 11, 2023
walldiss added a commit that referenced this pull request May 11, 2023
# Conflicts:
#	share/p2p/metrics.go
@walldiss walldiss dismissed stale reviews from renaynay and Wondertan via d170d2b May 11, 2023 09:20
@walldiss walldiss enabled auto-merge (squash) May 11, 2023 09:43
@walldiss walldiss merged commit 687704e into celestiaorg:main May 11, 2023
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:shares Shares and samples kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants