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

Update Rust crate prometheus-client to v0.23.0 #6080

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

hash-worker[bot]
Copy link
Contributor

@hash-worker hash-worker bot commented Jan 7, 2025

This PR contains the following updates:

Package Type Update Change
prometheus-client workspace.dependencies minor =0.22.3 -> =0.23.0

Release Notes

prometheus/client_rust (prometheus-client)

v0.23.0

Compare Source

Changed
  • ConstCounter::new now requires specifying the type of literal arguments, like this: ConstCounter::new(42u64);.
    See PR 173.

  • Update prost dependencies to v0.12.
    See PR 198.

  • Implement Atomic<u64> for AtomicU64 for gauges.
    See PR 226.

  • Implement EnableLabelValue for bool.
    See PR 237

Added
  • Support i32/f32 for Gauge and u32/f32 for Counter/CounterWithExemplar.
    See PR 173 and PR 216.

  • Supoort Arc<String> for EncodeLabelValue.
    See PR 217.

  • Add histogram::exponential_buckets_range.
    See PR 233.

  • Added get method to Family.
    See PR 234.

Fixed
  • Don't prepend , when encoding empty family label set.
    See PR 175.

Configuration

📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@hash-worker hash-worker bot enabled auto-merge January 7, 2025 12:49
@hash-worker hash-worker bot requested a review from a team January 7, 2025 12:49
@hash-worker
Copy link
Contributor Author

hash-worker bot commented Jan 7, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package prometheus-client@0.22.3 --precise 0.23.0
    Updating crates.io index
error: failed to select a version for the requirement `prometheus-client = "^0.22.2"`
candidate versions found which didn't match: 0.23.0
location searched: crates.io index
required by package `libp2p-metrics v0.15.0`
    ... which satisfies dependency `libp2p-metrics = "^0.15.0"` (locked to 0.15.0) of package `libp2p v0.54.1`
    ... which satisfies dependency `libp2p = "=0.54.1"` (locked to 0.54.1) of package `harpc-net v0.0.0 (/tmp/renovate/repos/github/hashintel/hash/libs/@local/harpc/net)`
    ... which satisfies path dependency `harpc-net` (locked to 0.0.0) of package `harpc-server v0.0.0 (/tmp/renovate/repos/github/hashintel/hash/libs/@local/harpc/server)`
    ... which satisfies path dependency `harpc-server` (locked to 0.0.0) of package `hash-graph v0.0.0 (/tmp/renovate/repos/github/hashintel/hash/apps/hash-graph)`

@github-actions github-actions bot added the area/deps Relates to third-party dependencies (area) label Jan 7, 2025
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Benchmark results

@rust/hash-graph-benches – Integrations

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$17.7 \mathrm{ms} \pm 231 \mathrm{μs}\left({\color{lightgreen}-25.941 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$17.2 \mathrm{ms} \pm 221 \mathrm{μs}\left({\color{gray}0.590 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$16.4 \mathrm{ms} \pm 172 \mathrm{μs}\left({\color{gray}-4.155 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$16.8 \mathrm{ms} \pm 219 \mathrm{μs}\left({\color{gray}4.79 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$17.7 \mathrm{ms} \pm 210 \mathrm{μs}\left({\color{gray}1.59 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$17.2 \mathrm{ms} \pm 210 \mathrm{μs}\left({\color{red}13.6 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$16.0 \mathrm{ms} \pm 177 \mathrm{μs}\left({\color{lightgreen}-5.961 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$16.5 \mathrm{ms} \pm 199 \mathrm{μs}\left({\color{lightgreen}-30.191 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$16.8 \mathrm{ms} \pm 212 \mathrm{μs}\left({\color{lightgreen}-14.663 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property depths: DT=255, PT=255, ET=255, E=255 $$69.3 \mathrm{ms} \pm 293 \mathrm{μs}\left({\color{gray}-1.022 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$41.4 \mathrm{ms} \pm 155 \mathrm{μs}\left({\color{gray}-3.001 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$61.4 \mathrm{ms} \pm 287 \mathrm{μs}\left({\color{gray}1.04 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$45.6 \mathrm{ms} \pm 167 \mathrm{μs}\left({\color{gray}-0.865 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$52.5 \mathrm{ms} \pm 277 \mathrm{μs}\left({\color{gray}1.51 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$57.6 \mathrm{ms} \pm 193 \mathrm{μs}\left({\color{gray}1.41 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$106 \mathrm{ms} \pm 437 \mathrm{μs}\left({\color{gray}-1.779 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$41.8 \mathrm{ms} \pm 215 \mathrm{μs}\left({\color{gray}-0.297 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=2, PT=2, ET=2, E=2 $$97.6 \mathrm{ms} \pm 448 \mathrm{μs}\left({\color{gray}-0.992 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$82.0 \mathrm{ms} \pm 420 \mathrm{μs}\left({\color{gray}0.297 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$90.8 \mathrm{ms} \pm 542 \mathrm{μs}\left({\color{gray}2.37 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$93.6 \mathrm{ms} \pm 456 \mathrm{μs}\left({\color{gray}-2.021 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: d4e16033-c281-4cde-aa35-9085bf2e7579 $$2.14 \mathrm{ms} \pm 6.53 \mathrm{μs}\left({\color{gray}-0.818 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$273 \mathrm{ms} \pm 1.88 \mathrm{ms}\left({\color{lightgreen}-95.140 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$27.3 \mathrm{ms} \pm 311 \mathrm{μs}\left({\color{gray}-0.780 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$20.6 \mathrm{ms} \pm 63.7 \mathrm{μs}\left({\color{gray}-1.739 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$57.3 \mathrm{ms} \pm 170 \mathrm{μs}\left({\color{gray}-1.833 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$170 \mathrm{ms} \pm 5.24 \mathrm{ms}\left({\color{gray}-4.380 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$1.96 \mathrm{ms} \pm 6.55 \mathrm{μs}\left({\color{gray}-0.087 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$2.20 \mathrm{ms} \pm 11.1 \mathrm{μs}\left({\color{gray}1.67 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$1.96 \mathrm{ms} \pm 4.96 \mathrm{μs}\left({\color{gray}-1.006 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$2.87 \mathrm{ms} \pm 12.2 \mathrm{μs}\left({\color{gray}-1.645 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$9.33 \mathrm{ms} \pm 82.3 \mathrm{μs}\left({\color{lightgreen}-8.805 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$4.06 \mathrm{ms} \pm 18.0 \mathrm{μs}\left({\color{lightgreen}-20.642 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$1.97 \mathrm{ms} \pm 11.1 \mathrm{μs}\left({\color{gray}-1.587 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.94 \mathrm{ms} \pm 8.79 \mathrm{μs}\left({\color{gray}-1.541 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$2.15 \mathrm{ms} \pm 6.54 \mathrm{μs}\left({\color{gray}-0.797 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$3.32 \mathrm{ms} \pm 16.9 \mathrm{μs}\left({\color{gray}3.33 \mathrm{\%}}\right) $$ Flame Graph

auto-merge was automatically disabled January 7, 2025 13:28

Pull Request is not mergeable

auto-merge was automatically disabled January 7, 2025 13:28

Pull Request is not mergeable

Merged via the queue into main with commit 3c61d21 Jan 7, 2025
165 of 167 checks passed
@hash-worker hash-worker bot deleted the deps/rs/prometheus-client-0.x branch January 7, 2025 13:29
CiaranMn pushed a commit that referenced this pull request Jan 13, 2025
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deps Relates to third-party dependencies (area)
Development

Successfully merging this pull request may close these issues.

2 participants