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(shwap/bitswap): add blockstore metrics #3862

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

walldiss
Copy link
Member

Add telemetry for server side of bitswap (blockstore) operations.

@walldiss walldiss added kind:feat Attached to feature PRs area:metrics Related to measuring/collecting node metrics labels Oct 18, 2024
@walldiss walldiss self-assigned this Oct 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 11.72840% with 143 lines in your changes missing coverage. Please review.

Project coverage is 44.69%. Comparing base (2469e7a) to head (4bb6c2b).
Report is 344 commits behind head on main.

Files with missing lines Patch % Lines
share/shwap/p2p/bitswap/blockstore_metrics.go 0.00% 141 Missing ⚠️
nodebuilder/share/bitswap.go 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3862      +/-   ##
==========================================
- Coverage   44.83%   44.69%   -0.15%     
==========================================
  Files         265      315      +50     
  Lines       14620    21952    +7332     
==========================================
+ Hits         6555     9811    +3256     
- Misses       7313    11118    +3805     
- Partials      752     1023     +271     

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

getSize metric.Int64Counter
put metric.Int64Counter
putMany metric.Int64Counter
allKeysChan metric.Int64Counter
Copy link
Member

Choose a reason for hiding this comment

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

We dont need this one realistically. We dont implement it and never call it

Copy link
Member Author

Choose a reason for hiding this comment

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

The blockstore metrics are design as general purpose wrapper. Metrics wrapper is also used for Light node blockstore, which implements those operations.

share/shwap/p2p/bitswap/blockstore_metrics.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Related to measuring/collecting node metrics kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants