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

[Feature] Add telemetry #27

Merged
merged 30 commits into from
Feb 21, 2025
Merged

[Feature] Add telemetry #27

merged 30 commits into from
Feb 21, 2025

Conversation

tanut32039
Copy link
Contributor

@tanut32039 tanut32039 commented Jan 17, 2025

Fixed: #XXXX

Implementation details

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@tanut32039 tanut32039 requested a review from RogerKSI February 4, 2025 04:01
@tanut32039 tanut32039 requested a review from nkitlabs February 6, 2025 07:45
@tanut32039 tanut32039 requested a review from RogerKSI February 19, 2025 10:44
Comment on lines +89 to +92
// update the metric for unrelayed packets based on the difference between the latest sequences on BandChain and the target chain
relayermetrics.SetUnrelayedPackets(
t.TunnelID,
float64(tunnelBandInfo.LatestSequence-tunnelChainInfo.LatestSequence),
Copy link
Collaborator

Choose a reason for hiding this comment

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

set twice? at the beginning & at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

set once

Comment on lines 153 to 154
// increment the packets received metric
relayermetrics.IncPacketsReceived(t.TunnelID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

what increment packet received for? new packet that falcon receive or successfully relayed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

change to PacketsRelayedSuccess pls check

@tanut32039 tanut32039 requested a review from nkitlabs February 21, 2025 05:32
@nkitlabs nkitlabs merged commit 59f1d30 into main Feb 21, 2025
2 checks passed
@nkitlabs nkitlabs deleted the add-telemetry branch February 21, 2025 08:05
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