-
Notifications
You must be signed in to change notification settings - Fork 624
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
chore: add telemetry reporting for packet methods #7673
Conversation
@@ -226,6 +226,8 @@ func (k *Keeper) Acknowledgement(ctx context.Context, msg *types.MsgAcknowledgem | |||
} | |||
} | |||
|
|||
defer telemetry.ReportAcknowledgePacket(msg.Packet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defer call already existed for recv
telemetry.NewLabel(ibcmetrics.LabelSourcePort, payload.SourcePort), | ||
telemetry.NewLabel(ibcmetrics.LabelSourceChannel, packet.SourceChannel), | ||
telemetry.NewLabel(ibcmetrics.LabelDestinationPort, payload.DestinationPort), | ||
telemetry.NewLabel(ibcmetrics.LabelDestinationChannel, packet.DestinationChannel), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept same labels here, unsure if more/less is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would imagine it's fine. If we need more, someone will probably tell us.
Quality Gate passed for 'ibc-go'Issues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! LGTM!
telemetry.NewLabel(ibcmetrics.LabelSourcePort, payload.SourcePort), | ||
telemetry.NewLabel(ibcmetrics.LabelSourceChannel, packet.SourceChannel), | ||
telemetry.NewLabel(ibcmetrics.LabelDestinationPort, payload.DestinationPort), | ||
telemetry.NewLabel(ibcmetrics.LabelDestinationChannel, packet.DestinationChannel), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would imagine it's fine. If we need more, someone will probably tell us.
Description
closes: #7437
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.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.