Skip to content

network: deprecate near_peer_message_received_total - #7548

Merged
near-bulldozer[bot] merged 1 commit into
near:masterfrom
mina86:h
Sep 5, 2022
Merged

network: deprecate near_peer_message_received_total#7548
near-bulldozer[bot] merged 1 commit into
near:masterfrom
mina86:h

Conversation

@mina86

@mina86 mina86 commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

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
)
.unwrap()
});
// TODO(mina86): This has been deprecated in 1.30. Remove at 1.32 or so.

Copy link
Copy Markdown
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

matklad commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

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

mina86 commented Sep 5, 2022

Copy link
Copy Markdown
Contributor Author

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