Skip to content

fix(kademlia): set reachability status metric value to 1 instead of 0#5368

Merged
gacevicljubisa merged 1 commit intomasterfrom
kademlia-reachability-status-metric
Feb 16, 2026
Merged

fix(kademlia): set reachability status metric value to 1 instead of 0#5368
gacevicljubisa merged 1 commit intomasterfrom
kademlia-reachability-status-metric

Conversation

@gacevicljubisa
Copy link
Member

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

The ReachabilityStatus gauge was always being set to 0 for all labels,
making the metric effectively useless. Reset all labels on status change
and set the current status to 1.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@gacevicljubisa gacevicljubisa merged commit 8251748 into master Feb 16, 2026
23 of 24 checks passed
@gacevicljubisa gacevicljubisa deleted the kademlia-reachability-status-metric branch February 16, 2026 12:49
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.

4 participants