Skip to content

fix(metric): message type in metric MessageReceiveBytesTotal is wrong#2984

Merged
hvanz merged 1 commit intomainfrom
hvanz/fix-message-receive-bytes-metric
May 2, 2024
Merged

fix(metric): message type in metric MessageReceiveBytesTotal is wrong#2984
hvanz merged 1 commit intomainfrom
hvanz/fix-message-receive-bytes-metric

Conversation

@hvanz
Copy link
Collaborator

@hvanz hvanz commented May 2, 2024

In the metric MessageReceiveBytesTotal, the only value produced in the message_type label is v1_Message. This is because we are reading the msg variable before the message is unwrapped. This bug was recently introduced in #2851.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@hvanz hvanz added bug Something isn't working metrics labels May 2, 2024
@hvanz hvanz self-assigned this May 2, 2024
@hvanz hvanz requested a review from a team as a code owner May 2, 2024 14:20
@hvanz hvanz requested a review from a team May 2, 2024 14:20
@hvanz hvanz enabled auto-merge May 2, 2024 14:22
@hvanz hvanz added this pull request to the merge queue May 2, 2024
Merged via the queue into main with commit 33729e6 May 2, 2024
@hvanz hvanz deleted the hvanz/fix-message-receive-bytes-metric branch May 2, 2024 15:19
mergify bot pushed a commit that referenced this pull request May 2, 2024
…ng (#2984)

In the metric `MessageReceiveBytesTotal`, the only value produced in the
`message_type` label is `v1_Message`. This is because we are reading the
`msg` variable before the message is unwrapped. This bug was recently
introduced in #2851.

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [ ] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit 33729e6)
hvanz added a commit that referenced this pull request May 3, 2024
…ng (backport #2984) (#2985)

In the metric `MessageReceiveBytesTotal`, the only value produced in the
`message_type` label is `v1_Message`. This is because we are reading the
`msg` variable before the message is unwrapped. This bug was recently
introduced in #2851.

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [ ] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #2984 done by
[Mergify](https://mergify.com).

Co-authored-by: Hernán Vanzetto <15466498+hvanz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working metrics

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants