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

refactor(metrics/identify): update to new collector trait #4160

Merged
merged 7 commits into from
Oct 25, 2023

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Jul 8, 2023

Description

Updates to prometheus-client Collector trait refactor introduced with prometheus/client_rust#149.

Notes & open questions

Ready for review, though blocked to merge until prometheus/client_rust#149 is released.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

LGTM. Essentially, the proposed design is a programmatic API for creating metrics right? I think that is a good model.

@mxinden mxinden added this to the v0.53.0 milestone Jul 12, 2023
@mxinden
Copy link
Member Author

mxinden commented Jul 12, 2023

Upgrading to prometheus-client v0.22.0 is a breaking change given that prometheus-client is exposed in libp2p-metrics and libp2p-gossipsub. I am adding this pull request to the v0.53.0 milestone.

@mergify
Copy link
Contributor

mergify bot commented Jul 24, 2023

This pull request has merge conflicts. Could you please resolve them @mxinden? 🙏

@mxinden mxinden marked this pull request as draft July 24, 2023 08:49
@mxinden
Copy link
Member Author

mxinden commented Jul 24, 2023

Converting to draft here given that we will only merge with v0.53.0 milestone.

@thomaseizinger
Copy link
Contributor

@mxinden Can you cut a new release so we can remove the patch entry?

@thomaseizinger thomaseizinger marked this pull request as ready for review October 25, 2023 03:14
@mergify mergify bot merged commit 7517934 into libp2p:master Oct 25, 2023
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants