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

network: deprecate near_peer_message_received_total #7548

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Sep 5, 2022

Deprecate near_peer_message_received_total Prometheus metric in favour
of aggregating near_peer_message_received_by_type_total metric instead.

Deprecate near_peer_message_received_total Prometheus metric in favour
of aggregating near_peer_message_received_by_type_total metric instead.
@mina86 mina86 added P-low Priority: low S-automerge labels Sep 5, 2022
@mina86 mina86 requested a review from a team as a code owner September 5, 2022 02:01
@mina86 mina86 requested a review from mm-near September 5, 2022 02:01
@@ -102,10 +102,11 @@ pub(crate) static PEER_MESSAGE_RECEIVED_BY_TYPE_BYTES: Lazy<IntCounterVec> = Laz
)
.unwrap()
});
// TODO(mina86): This has been deprecated in 1.30. Remove at 1.32 or so.
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 for leaving such comments !

@near-bulldozer near-bulldozer bot merged commit ce786f2 into near:master Sep 5, 2022
@matklad
Copy link
Contributor

matklad commented Sep 5, 2022

I am a bit surprised that we go with deprecation here. I guess some validators may setup alerts on the metrics, so metrics are part of our public API, and so we can't just remove them?

@mina86 mina86 deleted the h branch September 5, 2022 11:19
@mina86
Copy link
Contributor Author

mina86 commented Sep 5, 2022

We’re not just removing the metric. It’s deprecated so users have time to migrate and this will be mentioned in release notes which validators should / do read.

nikurt pushed a commit that referenced this pull request Nov 9, 2022
Deprecate near_peer_message_received_total Prometheus metric in favour
of aggregating near_peer_message_received_by_type_total metric instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-low Priority: low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants