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

ibc: metrics #7441

Merged
merged 23 commits into from
Oct 8, 2020
Merged

ibc: metrics #7441

merged 23 commits into from
Oct 8, 2020

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Oct 2, 2020

Description

Adds metric for the IBC module. For a full list see here.

It also updates some logs that had wrong format


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@fedekunze fedekunze added the x/ibc label Oct 2, 2020
@codecov
Copy link

codecov bot commented Oct 2, 2020

Codecov Report

Merging #7441 into master will decrease coverage by 0.30%.
The diff coverage is 98.20%.

@@            Coverage Diff             @@
##           master    #7441      +/-   ##
==========================================
- Coverage   58.02%   57.71%   -0.31%     
==========================================
  Files         306      439     +133     
  Lines       19484    27547    +8063     
==========================================
+ Hits        11305    15900    +4595     
- Misses       6971    10091    +3120     
- Partials     1208     1556     +348     

@fedekunze fedekunze marked this pull request as ready for review October 2, 2020 15:12
@fedekunze fedekunze added the C: telemetry Issues and features pertaining to SDK telemetry. label Oct 2, 2020
x/ibc/core/04-channel/keeper/handshake.go Outdated Show resolved Hide resolved
x/ibc/applications/transfer/keeper/relay.go Show resolved Hide resolved
[]string{"ibc", types.ModuleName, "receive"},
1,
[]metrics.Label{
telemetry.NewLabel("chain_id", ctx.ChainID()),
Copy link
Contributor

Choose a reason for hiding this comment

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

why the chain ID? this would never change

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍 although it would be useful to retrieve the chain_id from the counterparty chain? Would that be better?

Copy link
Contributor

Choose a reason for hiding this comment

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

yea that makes a lot more sense

x/ibc/applications/transfer/keeper/relay.go Show resolved Hide resolved
x/ibc/applications/transfer/keeper/relay.go Show resolved Hide resolved
Copy link
Member

@jackzampolin jackzampolin left a comment

Choose a reason for hiding this comment

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

🚀

@fedekunze fedekunze added this to the IBC 1.0 [Implementation] milestone Oct 8, 2020
@fedekunze fedekunze added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 8, 2020
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

🚀

@mergify mergify bot merged commit c39dd9e into master Oct 8, 2020
@mergify mergify bot deleted the fedekunze/ibc-metrics branch October 8, 2020 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C: telemetry Issues and features pertaining to SDK telemetry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants