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

build(deps): update prometheus-client requirement from 0.16.0 to 0.19.0 #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 23, 2022

Updates the requirements on prometheus-client to permit the latest version.

Release notes

Sourced from prometheus-client's releases.

v0.19.0

See changelog for details.

Changelog

Sourced from prometheus-client's changelog.

[0.19.0]

This is a large release including multiple breaking changes. Major user-facing improvement of this release is support for the OpenMetrics Protobuf format.

Upgrade guide:

  • Don't box before registering.

      registry.register(
          "my_metric",
          "This is my metric",
    -      Box::new(my_metric.clone()),
    +      my_metric.clone(),
      );
  • Gauge uses i64 instead of u64.

      my_gauge
    -     .set(42u64);
    +     .set(42i64);
  • Derive EncodeLabelSet for struct and EncodeLabelValue for enum instead of just Encode for all and require Debug.

    - #[derive(Clone, Hash, PartialEq, Eq, Encode)]
    + #[derive(Clone, Hash, PartialEq, Eq, EncodeLabelSet, Debug)]
      struct Labels {
          path: String,
          method: Method,
          some_number: u64,
      }
    
    #[derive(Clone, Hash, PartialEq, Eq, Encode)]
    
    
    #[derive(Clone, Hash, PartialEq, Eq, EncodeLabelValue, Debug)]
    enum Method {
    Get,
    #[allow(dead_code)]
    Put,
    }
  • Encode as utf-8 and not as [u8].

    - let mut buffer = vec![];
  • ... (truncated)

    Commits

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

    Updates the requirements on [prometheus-client](https://github.com/prometheus/client_rust) to permit the latest version.
    - [Release notes](https://github.com/prometheus/client_rust/releases)
    - [Changelog](https://github.com/prometheus/client_rust/blob/master/CHANGELOG.md)
    - [Commits](prometheus/client_rust@v0.16.0...v0.19.0)
    
    ---
    updated-dependencies:
    - dependency-name: prometheus-client
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    @dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Dec 23, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    0 participants