Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prometheus/client_rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.23.1
Choose a base ref
...
head repository: prometheus/client_rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.24.0
Choose a head ref
  • 11 commits
  • 21 files changed
  • 7 contributors

Commits on Feb 9, 2025

  1. feat(encoding)!: EncodeLabelSet::encode() uses reference (#257)

    this commit alters the signature of the `EncodeLabelSet::encode()` trait
    method, such that it now accepts a mutable reference to its encoder.
    
    this is related to #135, and is a second proposal following
    previous work in #240.
    
    this change permits distinct label sets to be composed together, now
    that the label set encoder is not consumed. a new implementation for
    tuples `(A, B)` is provided.
    
    this commit includes a test case showing that a metric family can
    compose two label sets together, and that such a family can successfully
    be digested by the python client library.
    
    `derive-encode` is altered to generate code matching this new trait
    signature, and has been bumped to version 0.5.0 as a result of this
    breaking change in the `prometheus-client` library.
    
    Signed-off-by: katelyn martin <me+cratelyn@katelyn.world>
    cratelyn authored Feb 9, 2025
    Configuration menu
    Copy the full SHA
    84e2cc6 View commit details
    Browse the repository at this point in the history
  2. feat(metrics/family): 🍫 add Family::get_or_create_owned() (#244)

    fixes #231.
    
    this introduces a new method to `Family<S, M, C>` to help alleviate the
    risk of deadlocks when accessing multiple series within a given metrics
    family.
    
    this returns a plain `M`, rather than the `MappedRwLockReadGuard<M>`
    RAII guard returned by `get_or_create()`.
    
    a test case is introduced in this commit to demonstrate that structures
    accessing multiple series within a single expression will not
    accidentally create a deadlock.
    
    Signed-off-by: katelyn martin <me+cratelyn@katelyn.world>
    cratelyn authored Feb 9, 2025
    Configuration menu
    Copy the full SHA
    377ca2d View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2025

  1. docs: add example using std::io::Write (#261)

    Signed-off-by: Edwin Amsler <edwinguy@gmail.com>
    RandomInsano authored Feb 27, 2025
    Configuration menu
    Copy the full SHA
    ab152ee View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2025

  1. ci: bump actions/cache to v4 (#264)

    Signed-off-by: Max Leonard Inden <mail@max-inden.de>
    mxinden authored Apr 7, 2025
    Configuration menu
    Copy the full SHA
    60e44ad View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2025

  1. fix(derive-encode): expand prelude symbols to absolute paths (#265)

    According to [1]:
    > Generally all macros (procedural as well as macro_rules) designed to be used
    > by other people should refer to every single thing in their expanded code
    > through an absolute path, such as std::result::Result.
    
    [1]: https://github.com/dtolnay/proc-macro-workshop/blob/3b6bcd2c3ad1c1946e6fbcc9be25d3890876087d/builder/tests/09-redefined-prelude-types.rs#L13C1-L15C58
    
    Signed-off-by: ADD-SP <add_sp@outlook.com>
    ADD-SP authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    adc7c4e View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2025

  1. chore: fix minor clippy lints (#275)

    Signed-off-by: Max Leonard Inden <mail@max-inden.de>
    mxinden authored Aug 4, 2025
    Configuration menu
    Copy the full SHA
    930aa08 View commit details
    Browse the repository at this point in the history
  2. fix: remove unnecessary Sized boundaries (#274)

    Signed-off-by: slonkazoid <slonkazoid@slonk.ing>
    slonkazoid authored Aug 4, 2025
    Configuration menu
    Copy the full SHA
    cd3c3e8 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2025

  1. chore: fix clippy complaints from Rust 1.89.0 (#277)

    Signed-off-by: Ivan Babrou <github@ivan.computer>
    bobrik authored Aug 11, 2025
    Configuration menu
    Copy the full SHA
    1d5824a View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2025

  1. feat: impl<T: Collector> Collector for std::sync::Arc<T> (#273)

    Signed-off-by: hanabi1224 <harlowmoo@gmail.com>
    hanabi1224 authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    970606a View commit details
    Browse the repository at this point in the history
  2. feat: support timestamp encoding in exemplars (#276)

    Signed-off-by: Ivan Babrou <github@ivan.computer>
    bobrik authored Aug 14, 2025
    Configuration menu
    Copy the full SHA
    0355911 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2025

  1. chore: prepare v0.24.0 (#280)

    Signed-off-by: Max Leonard Inden <mail@max-inden.de>
    mxinden authored Aug 15, 2025
    Configuration menu
    Copy the full SHA
    7844d86 View commit details
    Browse the repository at this point in the history
Loading