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_python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.22.0
Choose a base ref
...
head repository: prometheus/client_python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 13 commits
  • 16 files changed
  • 5 contributors

Commits on May 28, 2025

  1. BugFix: Skip validating and parsing comment lines early (#1108) (#1109)

    Signed-off-by: Wissam Abu Ahmad <wabuahma@redhat.com>
    wissamir authored May 28, 2025
    Configuration menu
    Copy the full SHA
    938b73e View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2025

  1. Use License Expressions in pyproject.toml (#1111)

    With the release of PEP-639 the best practice for specifying the license
    is now to use a license expression in the license field and specify any
    license files in license-files rather than the table-based approach from
    PEP-621. Including the license in the classifiers is also no longer
    allowed when using PEP-639 and has been removed.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks authored Jun 2, 2025
    Configuration menu
    Copy the full SHA
    f294cbb View commit details
    Browse the repository at this point in the history
  2. Release 0.22.1

    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jun 2, 2025
    Configuration menu
    Copy the full SHA
    d24220a View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. UTF-8 Content Negotiation

    Part of #1013
    
    Signed-off-by: Owen Williams <owen.williams@grafana.com>
    ywwg committed Jun 12, 2025
    Configuration menu
    Copy the full SHA
    831ed02 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1102 from prometheus/owilliams/utf8-02

    UTF-8 Content Negotiation
    csmarchbanks authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    a6726a4 View commit details
    Browse the repository at this point in the history
  3. Fix including test data (#1113)

    Readd parts of `MANIFEST.in` responsible for including the test data
    in the source distribution.  Without that, setuptools includes only
    `.py` files from the test tree, leading to test failures.
    
    Fixes #1112
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    mgorny authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    6f19d31 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2025

  1. Add benchmark for text_string_to_metric_families

    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    09b0826 View commit details
    Browse the repository at this point in the history
  2. When searching for label end start the search after the label start

    This saves ~10% in the benchmark.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    fb5f6d7 View commit details
    Browse the repository at this point in the history
  3. Enumerate over text when finding unquoted char

    Enumerating rather than using a while loop saves significant CPU when
    looking for an unquoted character. This ends up improving the benchmark
    ~20% on its own.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    119f1c2 View commit details
    Browse the repository at this point in the history
  4. Avoid unnecessary iterating across the same term

    Split the term into the label name and label value portions in one swoop
    rather than starting from the beginning to find an = character after
    already going through the full term. This saves ~5% on the benchmark.
    
    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks committed Jul 3, 2025
    Configuration menu
    Copy the full SHA
    2a2ca52 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2025

  1. Add benchmark for text_string_to_metric_families (#1116)

    Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
    csmarchbanks authored Jul 8, 2025
    Configuration menu
    Copy the full SHA
    f915160 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1117 from prometheus/optimize-parser

    Optimize parser
    csmarchbanks authored Jul 8, 2025
    Configuration menu
    Copy the full SHA
    26da805 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2025

  1. Add support to write_to_textfile for custom tmpdir (#1115)

    * Add support to write_to_textfile for custom tmpdir
    
    While the try/except block does prevent most of the temp files from
    persisting, if there is a non catchable exception, those temp files
    continue to pollute the directory. Optionally set the temp
    directory would let us write to something like /tmp, so the target
    directory isn't polluted
    
    Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
    
    * Modify write_to_textfile to ensure tmpdir is on same filesystem
    
    The tmpdir must be on the same filesystem to ensure an atomic operation
    takes place. If this is not enforced, there could be partial writes
    which can lead to partial/incorrect metrics being exported
    
    Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
    
    ---------
    
    Signed-off-by: Aaditya Dhruv <aadityadhruv@mailbox.org>
    aadityadhruv authored Jul 11, 2025
    Configuration menu
    Copy the full SHA
    7368028 View commit details
    Browse the repository at this point in the history
Loading